]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Servers are allowed to set topics, so don't spam warnings when they do.
authorsplidge <redacted>
Fri, 28 Mar 2008 14:41:07 +0000 (14:41 +0000)
committersplidge <redacted>
Fri, 28 Mar 2008 14:41:07 +0000 (14:41 +0000)
channel/channelhandlers.c

index 71c4a8a63398ff8145f153b41221ca401df67f59..3342bc70d0f17f8b53ce6c720a6b4f52acce50df 100644 (file)
@@ -508,10 +508,13 @@ int handletopicmsg(void *source, int cargc, char **cargv) {
   if (cargc>3)
     timestamp=strtol(cargv[cargc-3], NULL, 10);
   
+  /* The following check removed because servers can set topics.. */
+#if 0
   if ((np=getnickbynumericstr((char *)source))==NULL) {
     /* We should check the sender exists, but we still change the topic even if it doesn't */
     Error("channel",ERR_WARNING,"Topic change by non-existent user %s",(char *)source);
   }
+#endif
   
   /* Grab channel pointer */
   if ((cp=findchannel(cargv[0]))==NULL) {