summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-irc-messages.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-11-16 16:28:09 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-11-16 16:28:09 +0000
commit9e247274d10eff0b52c14ef109f378d93159b977 (patch)
tree4932f4330b07e6aed255af3b1b7989b0bc3f9446 /src/fe-common/irc/fe-irc-messages.c
parent718d85ceabf8d2304020b46aa726fd04dda421c2 (diff)
downloadirssi-9e247274d10eff0b52c14ef109f378d93159b977.zip
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
Diffstat (limited to 'src/fe-common/irc/fe-irc-messages.c')
-rw-r--r--src/fe-common/irc/fe-irc-messages.c4
1 files changed, 3 insertions, 1 deletions
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),