ソースを参照

* Removed bots notifying net to join channel when it becomes opped (useless/floods net) (#63)

svn: 2112
Bryan Drewery 21 年 前
コミット
d2e2592d5e
2 ファイル変更6 行追加1 行削除
  1. 4 1
      src/mod/channels.mod/channels.c
  2. 2 0
      src/mod/irc.mod/mode.c

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

@@ -433,6 +433,8 @@ static void got_sp(int idx, char *code, char *par)
   if (chan)
     chan->channel.parttime = ((atoi(par) + now) - server_lag);
 }
+
+#ifdef no
 /* got_jn
  * We get this when a bot is opped in a +take chan
  * we are to set -inactive, jointime = 0, and join.
@@ -457,6 +459,7 @@ static void got_jn(int idx, char *code, char *par)
     }
   }
 }
+#endif
 
 static void set_mode_protect(struct chanset_t *chan, char *set)
 {
@@ -877,7 +880,7 @@ cmd_t channels_bot[] = {
   {"kl",	"", 	(Function) got_kl,    	NULL, 0},
   {"sj",	"", 	(Function) got_sj,    	NULL, 0},
   {"sp",	"", 	(Function) got_sp,    	NULL, 0},
-  {"jn",	"", 	(Function) got_jn,    	NULL, 0},
+//  {"jn",	"", 	(Function) got_jn,    	NULL, 0},
 /*
 #ifdef HUB
   {"o1", "", (Function) got_o1, NULL, 0},

+ 2 - 0
src/mod/irc.mod/mode.c

@@ -604,12 +604,14 @@ got_op(struct chanset_t *chan, memberlist *m, memberlist *mv)
   }
   mv->flags |= WASOP;
   if (check_chan) {
+#ifdef no
     /* tell other bots to set jointime to 0 and join */
     char *buf = (char *) my_calloc(1, strlen(chan->dname) + 3 + 1);
 
     simple_sprintf(buf, "jn %s", chan->dname);
     putallbots(buf);
     free(buf);
+#endif
     recheck_channel(chan, 2);
   }
 }