1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

If 001 has not been received yet, also treat "Banned" or

"Bad user info" (case insensitive) in an ERROR message as
an indication of a server ban.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4571 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Jilles Tjoelker 2007-06-29 18:45:14 +00:00 committed by jilles
parent 566f6d24be
commit 0b8bee080a

View File

@ -741,7 +741,9 @@ static void event_error(IRC_SERVER_REC *server, const char *data)
g_return_if_fail(server != NULL);
if (!server->connected && (stristr(data, "Unauthorized") != NULL ||
stristr(data, "K-lined") != NULL))
stristr(data, "K-lined") != NULL ||
stristr(data, "Banned") != NULL ||
stristr(data, "Bad user info") != NULL))
server->banned = TRUE;
}