]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fixed core bug with renaming channels where the source channel doesn't
authorsplidge <redacted>
Fri, 9 Sep 2005 13:14:00 +0000 (14:14 +0100)
committersplidge <redacted>
Fri, 9 Sep 2005 13:14:00 +0000 (14:14 +0100)
currently exist.

chanserv/chancmds.c

index 1936bd4a861949c949ea2078bff8090a7bbdbdb5..d54eaff25b943ad5ac5a14c0c3c3170ef296521a 100644 (file)
@@ -1874,7 +1874,8 @@ int csc_dorenchan(void *source, int cargc, char **cargv) {
 
   cs_log(sender,"RENCHAN %s -> %s",cip1->name->content,cip2->name->content);
 
-  if (!CIsSuspended(rcp)) {
+  /* Remove from the channel.  Don't bother if the channel doesn't exist. */
+  if (!CIsSuspended(rcp) && cip1->channel) {
     CSetSuspended(rcp);    
     chanservjoinchan(cip1->channel);
     CClearSuspended(rcp);