Преглед изворни кода

* Fixed channel bans not displaying on hubs (bug #1)

svn: 1943
Bryan Drewery пре 21 година
родитељ
комит
37be4eea3d
2 измењених фајлова са 4 додато и 1 уклоњено
  1. 1 0
      doc/UPDATES
  2. 3 1
      src/mod/channels.mod/userchan.c

+ 1 - 0
doc/UPDATES

@@ -45,6 +45,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * chanset -bitch/-private/-botbitch/+botbitch/+closed/+private will now trigger bots to recheck channel (op/deop/kick people)
 * Fixed bot not updating it's hostmask when reconnecting to server
 * Fixed bot sending +Ie modes before recieving list after opping.
+* Fixed channel bans not displaying on hubs (#1)
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 3 - 1
src/mod/channels.mod/userchan.c

@@ -387,7 +387,9 @@ static void display_mask(const char type, int idx, int number, maskrec *mask, st
   }
   if (mask->flags & MASKREC_STICKY)
     strcat(s, " (sticky)");
-  if (!chan || ischanmask(type, chan, mask->mask)) {
+
+  /* always show mask on hubs */
+  if (!chan || ischanmask(type, chan, mask->mask) || conf.bot->hub) {
     if (number >= 0) {
       dprintf(idx, "  [%3d] %s %s\n", number, mask->mask, s);
     } else {