summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-10 15:46:22 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-10 15:46:22 +0000
commitb89fb4a549846f70c5d679bd6a71f2738ffc43e1 (patch)
tree3c0551ad6815d5127031716089b272aa069b680b
parent6d6b02d10e0843c9e9102a408ad0bdeb50212760 (diff)
downloadirssi-b89fb4a549846f70c5d679bd6a71f2738ffc43e1.zip
Never ignore kick msg if you get kicked from channel.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2558 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-common/core/fe-ignore-messages.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-ignore-messages.c b/src/fe-common/core/fe-ignore-messages.c
index 770f4a4e..c1fb979d 100644
--- a/src/fe-common/core/fe-ignore-messages.c
+++ b/src/fe-common/core/fe-ignore-messages.c
@@ -22,6 +22,7 @@
#include "signals.h"
#include "levels.h"
#include "ignore.h"
+#include "servers.h"
static void sig_message_public(SERVER_REC *server, const char *msg,
const char *nick, const char *address,
@@ -64,7 +65,9 @@ static void sig_message_kick(SERVER_REC *server, const char *channel,
const char *nick, const char *kicker,
const char *address, const char *reason)
{
- if (ignore_check(server, kicker, address,
+ /* never ignore if you were kicked */
+ if (g_strcasecmp(nick, server->nick) != 0 &&
+ ignore_check(server, kicker, address,
channel, reason, MSGLEVEL_KICKS))
signal_stop();
}