mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05: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:
parent
bf937e5e69
commit
cb1287ab63
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user