Просмотр исходного кода

* Fixed bots unbanning bots via botnet requests when the bot is set +k for the chan.

svn: 1987
Bryan Drewery 21 лет назад
Родитель
Сommit
7889ab8f49
2 измененных файлов с 5 добавлено и 0 удалено
  1. 1 0
      doc/UPDATES
  2. 4 0
      src/mod/irc.mod/irc.c

+ 1 - 0
doc/UPDATES

@@ -66,6 +66,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * cmd_cycle now will only cycle the net if done on the hub. Doing it on a leaf cycles only that one bot.
 * cmd_cycle now will only cycle the net if done on the hub. Doing it on a leaf cycles only that one bot.
 * Optimized WHO parsing more to alieviate some cpu usage in large chans
 * Optimized WHO parsing more to alieviate some cpu usage in large chans
 * Fixed a bug which caused a leaf to not request ops in a channel after adding it's new host to the userfile.
 * Fixed a bug which caused a leaf to not request ops in a channel after adding it's new host to the userfile.
+* Fixed bots unbanning bots via botnet requests when the bot is set +k for the chan.
 
 
 1.2.2
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

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

@@ -404,6 +404,10 @@ getin_request(char *botnick, char *code, char *par)
              chan->dname, botnick);
              chan->dname, botnick);
       return;
       return;
     }
     }
+    if (chan_kick(fr) || glob_kick(fr)) {
+      putlog(LOG_GETIN, "*", "opreq from %s/%s on %s - %s is set to auto kickban.", botnick, nick, chan->dname, botnick);
+      return;
+    }
     if (chan_hasop(mem)) {
     if (chan_hasop(mem)) {
       putlog(LOG_GETIN, "*", "opreq from %s/%s on %s - %s already has ops", botnick, nick, chan->dname, nick);
       putlog(LOG_GETIN, "*", "opreq from %s/%s on %s - %s already has ops", botnick, nick, chan->dname, nick);
       return;
       return;