From 9e247274d10eff0b52c14ef109f378d93159b977 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 16 Nov 2008 16:28:09 +0000 Subject: [PATCH] Do not call skip_target on a non irc server in irc 'own_public' handler, based on a patch by Gabor Adam Toth. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4915 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-irc-messages.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fe-common/irc/fe-irc-messages.c b/src/fe-common/irc/fe-irc-messages.c index 36194a9b..fb8d1e94 100644 --- a/src/fe-common/irc/fe-irc-messages.c +++ b/src/fe-common/irc/fe-irc-messages.c @@ -69,9 +69,11 @@ static void sig_message_own_public(SERVER_REC *server, const char *msg, const char *oldtarget; char *nickmode; + if (!IS_IRC_SERVER(server)) + return; oldtarget = target; target = skip_target(IRC_SERVER(server), target); - if (IS_IRC_SERVER(server) && target != oldtarget) { + if (target != oldtarget) { /* Hybrid 6 / Bahamut feature, send msg to all ops / ops+voices in channel */ nickmode = channel_get_nickmode(channel_find(server, target),