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

* Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

svn: 1739
Bryan Drewery 21 лет назад
Родитель
Сommit
19713a5242
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/cmds.c

+ 1 - 0
doc/UPDATES

@@ -3,6 +3,7 @@ This is a summary of ChangeLog basically.
 Lines prefixxed with '-' were disabled before release and are not finishsed.
 
 1.2.2
+* Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.
 
 1.2.1
 

+ 1 - 1
src/cmds.c

@@ -2169,7 +2169,7 @@ int check_dcc_attrs(struct userrec *u, flag_t oatr)
   int stat;
 
   for (int i = 0; i < dcc_total; i++) {
-   if (dcc[i].type) {
+   if (dcc[i].type && !dcc[i].simul) {
 #ifdef LEAF
     if (dcc[i].type && dcc[i].type == &DCC_CHAT && !ischanhub() && u == conf.bot->u) {
       dprintf(i, "I am no longer a chathub..\n\n");