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

* cmd_botcmd now works correctly when the target is the bot you're on. (#46)

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

+ 1 - 0
doc/UPDATES

@@ -103,6 +103,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * Bans aren't checked on join anymore if the channel is +take
 * Fixed an outstanding bug on linking from a hub to another hub.
 * Added log msg (+w) for when a msg is received when umode +g. (#44)
+* cmd_botcmd now works correctly when the target is the bot you're on. (#46)
 
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 5 - 0
src/cmds.c

@@ -1456,6 +1456,11 @@ static void cmd_botcmd(int idx, char *par)
     }
   }
 
+  if (wild_match(botm, conf.bot->nick) || !egg_strcasecmp(botm, conf.bot->nick)) {
+    found++;
+    check_bind_dcc(cmd, idx, par);
+  }
+
   if (!found)
     dprintf(idx, "No bot matching '%s' linked\n", botm);