mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
updated dancer's channel forwarding support - using +f channel mode now, and
we won't print whois_modes anymore after forwarding. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2854 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
aede6457a1
commit
648a43ce14
@ -459,7 +459,8 @@ static void event_whois_help(IRC_SERVER_REC *server, const char *data)
|
||||
g_free(params);
|
||||
}
|
||||
|
||||
static void event_whois_modes(IRC_SERVER_REC *server, const char *data)
|
||||
static void event_whois_modes(IRC_SERVER_REC *server, const char *data,
|
||||
const char *orignick)
|
||||
{
|
||||
char *params, *nick, *modes;
|
||||
|
||||
@ -468,8 +469,13 @@ static void event_whois_modes(IRC_SERVER_REC *server, const char *data)
|
||||
params = event_get_params(data, 6, NULL, &nick,
|
||||
NULL, NULL, NULL, &modes);
|
||||
|
||||
if (!ischannel(*nick)) {
|
||||
printformat(server, nick, MSGLEVEL_CRAP,
|
||||
IRCTXT_WHOIS_MODES, nick, modes);
|
||||
} else {
|
||||
/* OPN's dancer uses for channel forwarding */
|
||||
print_event_received(server, data, orignick, FALSE);
|
||||
}
|
||||
g_free(params);
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#define HAS_MODE_ARG_ALWAYS(mode) \
|
||||
((mode) == 'b' || (mode) == 'e' || (mode) == 'I' || (mode) == 'q' || \
|
||||
(mode) == 'd' || (mode) == 'o' || (mode) == 'h' || (mode) == 'v' || \
|
||||
(mode) == 'O' || (mode) == 'k')
|
||||
(mode) == 'O' || (mode) == 'k' || (mode) == 'f')
|
||||
|
||||
/* modes that have argument when being set (+) */
|
||||
#define HAS_MODE_ARG_SET(mode) \
|
||||
|
Loading…
Reference in New Issue
Block a user