ignore ENFTOPIC restriction if no TOPICMASK is set
[NeonServV5.git] / src / modules / NeonServ.mod / cmd_neonserv_topic.c
index ec9a806abddaeebecd0baa74c69a5f7f5253097c..068c547f09383ac7534d038ba7c10692540cf0ce 100644 (file)
@@ -55,7 +55,7 @@ CMD_BIND(neonserv_cmd_topic) {
         return;
     }
     int uaccess = getChannelAccess(user, chan);
-    if(uaccess >= atoi((row[3] ? row[3] : default_row[1]))) {
+    if(!strcmp(row[2], "") || uaccess >= atoi((row[3] ? row[3] : default_row[1]))) {
         //just set the topic
         newtopic = merge_argv(argv, 0, argc);
         if(uaccess >= atoi((row[4] ? row[4] : default_row[2]))) {