Selaa lähdekoodia

* Bots were not recognizing keys set in .chanset.
* Fixed a hub compile error


svn: 816

Bryan Drewery 22 vuotta sitten
vanhempi
commit
9f4494e45b
2 muutettua tiedostoa jossa 3 lisäystä ja 19 poistoa
  1. 2 18
      src/dccutil.c
  2. 1 1
      src/mod/channels.mod/userchan.c

+ 2 - 18
src/dccutil.c

@@ -106,32 +106,16 @@ void dprintf (int idx, ...)
     case DP_STDERR:
       tputs(STDERR, buf, len);
       break;
+#ifdef LEAF
     case DP_SERVER:
-#ifdef HUB
-     return;
-#endif /* HUB */
     case DP_HELP:
-#ifdef HUB
-     return;
-#endif /* HUB */
     case DP_MODE:
-#ifdef HUB
-     return;
-#endif /* HUB */
     case DP_MODE_NEXT:
-#ifdef HUB
-     return;
-#endif /* HUB */
     case DP_SERVER_NEXT:
-#ifdef HUB
-     return;
-#endif /* HUB */
     case DP_HELP_NEXT:
-#ifdef HUB
-     return;
-#endif /* HUB */
       queue_server(idx, buf, len);
       break;
+#endif /* LEAF */
     }
     return;
   } else { /* normal chat text */

+ 1 - 1
src/mod/channels.mod/userchan.c

@@ -1272,7 +1272,7 @@ int write_chans(FILE *f, int idx)
      get_mode_protect(chan, w);
 
      if (lfprintf(f, "\
-+ channel add %s { chanmode %s addedby %s addedts %lu idle-kick %d \
++ channel add %s { chanmode { %s } addedby %s addedts %lu idle-kick %d \
 limit %d stopnethack-mode %d revenge-mode %d flood-chan %d:%d \
 flood-ctcp %d:%d flood-join %d:%d flood-kick %d:%d flood-deop %d:%d \
 flood-nick %d:%d closed-ban %d closed-private %d ban-time %d \