diff options
author | Jilles Tjoelker <jilles@irssi.org> | 2007-06-29 18:45:14 +0000 |
---|---|---|
committer | jilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-06-29 18:45:14 +0000 |
commit | 0b8bee080ac588b9763b72a5abd866ed37425f07 (patch) | |
tree | 0821b5750fe5245fa9468f3c93851ccdb21177db /src/irc/core | |
parent | 566f6d24becc3626a43c02b750f50bbdc63ada87 (diff) | |
download | irssi-0b8bee080ac588b9763b72a5abd866ed37425f07.zip |
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
Diffstat (limited to 'src/irc/core')
-rw-r--r-- | src/irc/core/irc-servers.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 701bc321..21534f52 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -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; } |