Parcourir la source

* Ported [2438] to 1.2.9

svn: 2593
Bryan Drewery il y a 20 ans
Parent
commit
b0af9ab0a2
2 fichiers modifiés avec 4 ajouts et 9 suppressions
  1. 1 0
      doc/UPDATES
  2. 3 9
      src/mod/irc.mod/chan.c

+ 1 - 0
doc/UPDATES

@@ -24,6 +24,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed a mem leak on bot unlinks.
 * Fixed a mem leak on bot unlinks.
 * Fixed an error with msg-* displaying as msg* in 'help set'. (seinfeld)
 * Fixed an error with msg-* displaying as msg* in 'help set'. (seinfeld)
 * Setting 'manop-warn' was only being used for 'OP #chan' not 'OP' alone.
 * Setting 'manop-warn' was only being used for 'OP #chan' not 'OP' alone.
+* Fixed channel notices not being parsed.
 
 
 1.2.8
 1.2.8
 * Fixed [bot]* cmds depending on case of botnicks.
 * Fixed [bot]* cmds depending on case of botnicks.

+ 3 - 9
src/mod/irc.mod/chan.c

@@ -3056,9 +3056,6 @@ static int gotnotice(char *from, char *msg)
   char *to = newsplit(&msg), *realto = (*to == '@') ? to + 1 : to;
   char *to = newsplit(&msg), *realto = (*to == '@') ? to + 1 : to;
   struct chanset_t *chan = findchan(realto); 
   struct chanset_t *chan = findchan(realto); 
 
 
-  ignoring = match_ignore(from);
-  to = newsplit(&msg);
-  realto = (*to == '@') ? to + 1 : to;
   chan = findchan(realto);
   chan = findchan(realto);
   if (!chan)
   if (!chan)
     return 0;			/* Notice to an unknown channel?? */
     return 0;			/* Notice to an unknown channel?? */
@@ -3140,13 +3137,10 @@ static int gotnotice(char *from, char *msg)
     if (!chan)
     if (!chan)
       return 0;
       return 0;
 
 
-    if (!ignoring || trigger_on_ignore) {
-      chan = findchan(realto); 
-      if (!chan)
-	return 0;
-    }
-    irc_log(chan, "-%s:%s- %s", nick, to, msg);
     update_idle(chan->dname, nick);
     update_idle(chan->dname, nick);
+
+    if (!ignoring)
+      irc_log(chan, "-%s:%s- %s", nick, to, msg);
   }
   }
   return 0;
   return 0;
 }
 }