added "message own_public" and "message own_private" events that are

sent when /msg command is used. this way we don't need to parse the
/msg's options everywhere. also efnet @#channels support works now better.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1041 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-01-01 16:57:25 +00:00 committed by cras
commit 2ae679be08
15 changed files with 210 additions and 141 deletions

View file

@ -68,9 +68,9 @@ static int isnickflag_func(char flag)
return isnickflag(flag);
}
static int ischannel_func(char flag)
static int ischannel_func(const char *data)
{
return ischannel(flag);
return ischannel_target(data);
}
static void send_message(SERVER_REC *server, const char *target,

View file

@ -25,6 +25,10 @@
(a) == '!' || /* secure */ \
(a) == '+') /* modeless */
#define ischannel_target(a) \
(ischannel((a)[0]) || \
((a)[0] == '@' && ischannel((a)[1]))) /* hybrid6 @#channel */
#define IS_IRC_ITEM(rec) (IS_IRC_CHANNEL(rec) || IS_IRC_QUERY(rec))
extern char *current_server_event; /* current server event being processed */