فهرست منبع

* Remove unfinished flood control code

Bryan Drewery 16 سال پیش
والد
کامیت
145261d087
3فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 3 1
      src/mod/irc.mod/chan.c
  2. 2 0
      src/mod/irc.mod/irc.c
  3. 1 1
      src/mod/irc.mod/irc.h

+ 3 - 1
src/mod/irc.mod/chan.c

@@ -3191,8 +3191,10 @@ static int gotmsg(char *from, char *msg)
     int botmatch = 0;
     char *my_msg = NULL, *my_ptr = NULL, *fword = NULL;
 
-    if (me_op(chan) && doflood(chan) && 0)
+#ifdef unfinished
+    if (me_op(chan) && doflood(chan))
       detect_offense(m, chan, msg);
+#endif
 
     /* Check even if we're ignoring the host. (modified by Eule 17.7.99) */
     detect_chan_flood(nick, uhost, from, chan, FLOOD_PRIVMSG, NULL);

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

@@ -109,6 +109,7 @@ voice_ok(memberlist *m, struct chanset_t *chan)
 #include "cmdsirc.c"
 #include "msgcmds.c"
 
+#ifdef unfinished
 static void
 detect_offense(memberlist* m, struct chanset_t *chan, char *msg)
 {
@@ -140,6 +141,7 @@ dprintf(DP_HELP, "PRIVMSG %s :cap flood.\n", chan->dname);
   }
 */
 }
+#endif
 
 void unlock_chan(struct chanset_t *chan)
 {

+ 1 - 1
src/mod/irc.mod/irc.h

@@ -78,7 +78,7 @@ static void flush_mode(struct chanset_t *, int);
 #define resetexempts(chan)  resetmasks((chan), (chan)->channel.exempt, (chan)->exempts, global_exempts, 'e')
 #define resetinvites(chan)  resetmasks((chan), (chan)->channel.invite, (chan)->invites, global_invites, 'I')
 
-static void detect_offense(memberlist*, struct chanset_t *, char *);
+//static void detect_offense(memberlist*, struct chanset_t *, char *);
 /* static int target_priority(struct chanset_t *, memberlist *, int); */
 static bool do_op(char *, struct chanset_t *, bool, bool);
 static void request_op(struct chanset_t *);