فهرست منبع

Merge branch 'color-flood-exempt' into next

* color-flood-exempt:
  Properly lookup user when checking noflood() flags

Conflicts:
	doc/UPDATES
Bryan Drewery 13 سال پیش
والد
کامیت
e6a8ab539e
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 1 0
      doc/UPDATES
  2. 3 2
      src/mod/irc.mod/irc.c

+ 1 - 0
doc/UPDATES

@@ -4,6 +4,7 @@ next
   * Fix LASTON not being shared
   * Fix './wraith -V' not showing the updated HUB info
   * Fix hub startup not respecting changed HUB lines in config
+  * Really fix CAPS/COLOR flood detection not obeying x|x flags
 
 maint
   * Prevent crashing on startup if openssl can not be loaded

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

@@ -122,9 +122,10 @@ detect_offense(memberlist* m, struct chanset_t *chan, char *msg)
       || chan_sentkick(m)) //sanity check
     return 0;
 
+  member_getuser(m, 0);
+
   struct flag_record fr = { FR_GLOBAL | FR_CHAN, 0, 0, 0 };
-  struct userrec *u = m->user ? m->user : get_user_by_host(m->userhost);
-  get_user_flagrec(u, &fr, chan->dname, chan);
+  get_user_flagrec(m->user, &fr, chan->dname, chan);
 
   if (glob_bot(fr) ||
       chk_noflood(fr) ||