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

* Fixed bots not rechecking channel for invalid users after a .-chrec

svn: 1902
Bryan Drewery 21 лет назад
Родитель
Сommit
45f44b87bb
2 измененных файлов с 4 добавлено и 0 удалено
  1. 1 0
      doc/UPDATES
  2. 3 0
      src/mod/share.mod/share.c

+ 1 - 0
doc/UPDATES

@@ -36,6 +36,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed.
   (Fixes old bots/uname/data showing up in conf after bot is updated)
   (Fixes old bots/uname/data showing up in conf after bot is updated)
 * Fixed some bad passes being generated/set beginning with -/+
 * Fixed some bad passes being generated/set beginning with -/+
 * Fixed binary exiting with ERR_NOBOTS under conditions that it shouldn't. (updating)
 * Fixed binary exiting with ERR_NOBOTS under conditions that it shouldn't. (updating)
+* Fixed bots not rechecking channel for invalid users after a .-chrec
 
 
 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.

+ 3 - 0
src/mod/share.mod/share.c

@@ -347,6 +347,9 @@ share_mns_chrec(int idx, char *par)
       noshare = 0;
       noshare = 0;
       if (conf.bot->hub)
       if (conf.bot->hub)
         putlog(LOG_CMDS, "@", "%s: -chrec %s %s", dcc[idx].nick, user, par);
         putlog(LOG_CMDS, "@", "%s: -chrec %s %s", dcc[idx].nick, user, par);
+      else
+        recheck_channel(chan, 0);
+
     }
     }
   }
   }
 }
 }