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

* Auto set +D/-D depending on authed users

Bryan Drewery 16 лет назад
Родитель
Сommit
013c937db9
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/server.mod/server.c

+ 1 - 0
doc/UPDATES

@@ -89,6 +89,7 @@
   * Floodbots (+f) are now listed in cmd_userlist
   * Floodbots (+f) will automatically unDEAF themselves to they can monitor the channel for floods (namely flood-chan).
     Note that this is done about 10 seconds after adding +f to a bot. Removing +f will set DEAF again.
+  * This auto DEAF/UNDEAF works if you auth with the bot and it supports channel cmds
 
 1.2.16.1
 * Fix linux compile errors

+ 1 - 1
src/mod/server.mod/server.c

@@ -1012,7 +1012,7 @@ static void server_secondly()
         // Ensure that +D/+f are not conflicting
 
         // In +D but am +f, need to -D
-        if (deaf_set && doflood(NULL)) {
+        if (deaf_set && (doflood(NULL) || (Auth::ht_host.size() && auth_chan && strlen(auth_prefix)))) {
           dprintf(DP_SERVER, "MODE %s -%c\n", botname, deaf_char);
           deaf_set = 0;
         } else if (!deaf_set && use_deaf && deaf_char) {