]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/chanservnetevents.c
CHANSERV: Clarified behaviour of chanflag +f and empty topics.
[irc/quakenet/newserv.git] / chanserv / chanservnetevents.c
index 0320b00b86011732cdbcdcc9702115343602d677..d802c78b4ce600282261e1dc9bfbca737d4df5b8 100644 (file)
@@ -430,10 +430,8 @@ void cs_handletopicchange(int hooknum, void *arg) {
     return;
  
   if (CIsForceTopic(rcp)) {
-    if (rcp->topic) {
-      /* Forced topic: change it back */
-      localsettopic(chanservnick, cp, rcp->topic->content);
-    }
+    /* Forced topic: change it back even if blank */
+    localsettopic(chanservnick, cp, (rcp->topic)?rcp->topic->content:"");
   } else if (CIsTopicSave(rcp)) {
     if (rcp->topic) {
       freesstring(rcp->topic);