1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

If we get a ERR_NOSUCHNICK for the nick "*", display

the text in the numeric rather than a fixed "no such
nick/channel". This often contains more information for
at least ircu/ratbox/charybdis (Target left IRC with
failed text when /msg crosses quit/split).


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4508 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Jilles Tjoelker 2007-05-20 20:07:12 +00:00 committed by jilles
parent bf937e5e69
commit cb1287ab63

View File

@ -392,14 +392,20 @@ static void event_target_unavailable(IRC_SERVER_REC *server, const char *data,
g_free(params);
}
static void event_no_such_nick(IRC_SERVER_REC *server, const char *data)
static void event_no_such_nick(IRC_SERVER_REC *server, const char *data,
const char *nick, const char *addr)
{
char *params, *nick;
char *params, *unick;
g_return_if_fail(data != NULL);
params = event_get_params(data, 2, NULL, &nick);
printformat(server, nick, MSGLEVEL_CRAP, IRCTXT_NO_SUCH_NICK, nick);
params = event_get_params(data, 2, NULL, &unick);
if (!strcmp(unick, "*"))
/* more information will be in the description,
* e.g. * :Target left IRC. Failed to deliver: [hi] */
print_event_received(server, data, nick, FALSE);
else
printformat(server, unick, MSGLEVEL_CRAP, IRCTXT_NO_SUCH_NICK, unick);
g_free(params);
}