Переглянути джерело

* Raise HANDLEN up to 32 - lie to older bots and say we use 9.

Bryan Drewery 16 роки тому
батько
коміт
25eda6c638
3 змінених файлів з 4 додано та 2 видалено
  1. 2 0
      doc/UPDATES
  2. 1 1
      src/dcc.c
  3. 1 1
      src/eggdrop.h

+ 2 - 0
doc/UPDATES

@@ -1,3 +1,5 @@
+* Raise Handle length up to 32 characters.
+
 1.3 - http://wraith.botpack.net/milestone/1.3
 1.3 - http://wraith.botpack.net/milestone/1.3
 * Binary / shell / startup changes
 * Binary / shell / startup changes
   * Binary error messages are no longer obscure numbers or fake segfaults. (Compile with OBSCURE_ERRORS to re-enable)
   * Binary error messages are no longer obscure numbers or fake segfaults. (Compile with OBSCURE_ERRORS to re-enable)

+ 1 - 1
src/dcc.c

@@ -241,7 +241,7 @@ greet_new_bot(int idx)
     dcc[idx].status |= STAT_LEAF;
     dcc[idx].status |= STAT_LEAF;
   dcc[idx].status |= STAT_LINKING;
   dcc[idx].status |= STAT_LINKING;
 
 
-  dprintf(idx, "v 1001500 %d Wraith %s <%s> %d %li %s %s\n", HANDLEN, egg_version, "-", conf.bot->localhub, (long)buildts, commit, egg_version);
+  dprintf(idx, "v 1001500 9 Wraith %s <%s> %d %li %s %s\n", egg_version, "-", conf.bot->localhub, (long)buildts, commit, egg_version);
 
 
   for (int i = 0; i < dcc_total; i++) {
   for (int i = 0; i < dcc_total; i++) {
     if (dcc[i].type && dcc[i].type == &DCC_FORK_BOT) {
     if (dcc[i].type && dcc[i].type == &DCC_FORK_BOT) {

+ 1 - 1
src/eggdrop.h

@@ -24,7 +24,7 @@
  *       configuration file instead.
  *       configuration file instead.
  */
  */
 
 
-#define HANDLEN		  9	/* valid values 9->NICKMAX		*/
+#define HANDLEN		 32	/* valid values 9->NICKMAX		*/
 #define NICKMAX		 32	/* valid values HANDLEN->32		*/
 #define NICKMAX		 32	/* valid values HANDLEN->32		*/
 
 
 #define MAX_SOCKETS	300
 #define MAX_SOCKETS	300