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:
Timo Sirainen 2002-06-13 21:59:25 +00:00 committed by cras
commit 648a43ce14
2 changed files with 10 additions and 4 deletions

View file

@ -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);
printformat(server, nick, MSGLEVEL_CRAP,
IRCTXT_WHOIS_MODES, nick, 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);
}