Ver código fonte

* Port [3375] to 1.2.14
* Display errors from channel_modify while in channel_add



svn: 3376

Bryan Drewery 19 anos atrás
pai
commit
fcbfa6353f
1 arquivos alterados com 6 adições e 2 exclusões
  1. 6 2
      src/mod/channels.mod/tclchan.c

+ 6 - 2
src/mod/channels.mod/tclchan.c

@@ -936,8 +936,12 @@ int channel_add(char *result, char *newname, char *options)
    * if a user goes back to an eggdrop that no-longer supports certain
    * if a user goes back to an eggdrop that no-longer supports certain
    * (channel) options.
    * (channel) options.
    */
    */
-  if ((channel_modify(result, chan, items, (char **) item, 0) != OK) && !loading)
-    ret = ERROR;
+  if ((channel_modify(result, chan, items, (char **) item, 0) != OK)) {
+    putlog(LOG_ERROR, "*", "Error parsing channel options for %s: %s", chan->dname, result);
+    if (!loading)
+      ret = ERROR;
+  }
+    
 
 
   free(item);
   free(item);
   if (join && shouldjoin(chan))
   if (join && shouldjoin(chan))