1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

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
This commit is contained in:
Emanuele Giaquinta 2008-11-16 16:28:09 +00:00 committed by exg
parent 718d85ceab
commit 9e247274d1

View File

@ -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),