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