mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
"event 378" is also used to end /MAP in OPN.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2160 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
c35c32f3f0
commit
847ad423de
@ -436,7 +436,7 @@ static void event_whois_modes(IRC_SERVER_REC *server, const char *data)
|
|||||||
|
|
||||||
static void event_whois_realhost(IRC_SERVER_REC *server, const char *data)
|
static void event_whois_realhost(IRC_SERVER_REC *server, const char *data)
|
||||||
{
|
{
|
||||||
char *params, *nick, *txt_real, *txt_hostname, *hostname, *from;
|
char *params, *nick, *txt_real, *txt_hostname, *hostname, *text;
|
||||||
|
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
@ -449,12 +449,19 @@ static void event_whois_realhost(IRC_SERVER_REC *server, const char *data)
|
|||||||
g_free(params);
|
g_free(params);
|
||||||
params = event_get_params(data, 3, NULL, &nick, &hostname);
|
params = event_get_params(data, 3, NULL, &nick, &hostname);
|
||||||
|
|
||||||
from = strstr(hostname, "from ");
|
hostname = strstr(hostname, "from ");
|
||||||
if (from != NULL) hostname = from+5;
|
if (hostname != NULL) hostname += 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hostname != NULL) {
|
||||||
printformat(server, nick, MSGLEVEL_CRAP,
|
printformat(server, nick, MSGLEVEL_CRAP,
|
||||||
IRCTXT_WHOIS_REALHOST, nick, hostname);
|
IRCTXT_WHOIS_REALHOST, nick, hostname);
|
||||||
|
} else {
|
||||||
|
/* OPN's dancer uses for end of /MAP */
|
||||||
|
g_free(params);
|
||||||
|
params = event_get_params(data, 2, NULL, &text);
|
||||||
|
printtext(server, NULL, MSGLEVEL_CRAP, "%s", text);
|
||||||
|
}
|
||||||
g_free(params);
|
g_free(params);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -472,7 +479,8 @@ static void event_whois_usermode(IRC_SERVER_REC *server, const char *data)
|
|||||||
printformat(server, nick, MSGLEVEL_CRAP,
|
printformat(server, nick, MSGLEVEL_CRAP,
|
||||||
IRCTXT_WHOIS_USERMODE, nick, usermode);
|
IRCTXT_WHOIS_USERMODE, nick, usermode);
|
||||||
} else {
|
} else {
|
||||||
/* some servers use this as motd too.. */
|
/* some servers use this as motd too..
|
||||||
|
and OPN's dancer for /MAP */
|
||||||
g_free(params);
|
g_free(params);
|
||||||
params = event_get_params(data, 2, NULL, &text);
|
params = event_get_params(data, 2, NULL, &text);
|
||||||
printtext(server, NULL, MSGLEVEL_CRAP, "%s", text);
|
printtext(server, NULL, MSGLEVEL_CRAP, "%s", text);
|
||||||
|
Loading…
Reference in New Issue
Block a user