Răsfoiți Sursa

* Default channel groups to 'main'

Bryan Drewery 14 ani în urmă
părinte
comite
227a3c206e
2 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 1 1
      src/chanprog.c
  2. 1 0
      src/mod/channels.mod/chanmisc.c

+ 1 - 1
src/chanprog.c

@@ -57,7 +57,7 @@
 #include <bdlib/src/Array.h>
 #include <bdlib/src/String.h>
 
-char *def_chanset = "+enforcebans +dynamicbans +userbans -bitch +cycle -inactive +userexempts -dynamicexempts +userinvites -dynamicinvites -nodesynch -closed -take -voice -private -fastop +meankicks ban-type 3 protect-backup 1";
+char *def_chanset = "+enforcebans +dynamicbans +userbans -bitch +cycle -inactive +userexempts -dynamicexempts +userinvites -dynamicinvites -nodesynch -closed -take -voice -private -fastop +meankicks ban-type 3 protect-backup 1 groups { main }";
 struct chanset_t 	*chanset = NULL;	/* Channel list			*/
 struct chanset_t	*chanset_default = NULL;	/* Default channel list */
 char 			admin[121] = "";	/* Admin info			*/

+ 1 - 0
src/mod/channels.mod/chanmisc.c

@@ -1006,6 +1006,7 @@ int channel_add(char *result, const char *newname, char *options, bool isdefault
 /* Chanint template
  *  chan->temp = 0;
  */
+    strlcpy(chan->groups, "main", sizeof(chan->groups));
     chan->protect_backup = 1;
     chan->knock_flags = 0;
     chan->flood_lock_time = 120;