summaryrefslogtreecommitdiff
path: root/src/irc/core
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@irssi.org>2007-06-29 18:45:14 +0000
committerjilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-06-29 18:45:14 +0000
commit0b8bee080ac588b9763b72a5abd866ed37425f07 (patch)
tree0821b5750fe5245fa9468f3c93851ccdb21177db /src/irc/core
parent566f6d24becc3626a43c02b750f50bbdc63ada87 (diff)
downloadirssi-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.c4
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;
}