]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fix bug in the topic handler.
authorChris Porter <redacted>
Mon, 25 Aug 2008 00:21:39 +0000 (01:21 +0100)
committerChris Porter <redacted>
Mon, 25 Aug 2008 00:21:39 +0000 (01:21 +0100)
channel/channelhandlers.c

index 18b8fb4fb0bcf8230a55948df7b22f4582a89f8a..d3c6c8affdb3061d759ecc9004ae4ed8ff55376a 100644 (file)
@@ -508,9 +508,11 @@ int handletopicmsg(void *source, int cargc, char **cargv) {
   if (cargc>3)
     timestamp=strtol(cargv[cargc-3], NULL, 10);
   
+  np=getnickbynumericstr((char *)source);
+
   /* The following check removed because servers can set topics.. */
 #if 0
-  if ((np=getnickbynumericstr((char *)source))==NULL) {
+  if (np==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);
   }