Explorar el Código

* cmd_botver: don't warn that the bot isn't linked if we use it on the current bot

svn: 1505
Bryan Drewery hace 21 años
padre
commit
c5516024e8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/cmds.c

+ 1 - 1
src/cmds.c

@@ -3690,7 +3690,7 @@ static void cmd_botversion(int idx, char * par) {
     dprintf(idx, "Usage: botversion <bot>\n");
     return;
   }
-  if (nextbot(par)<0) {
+  if (!egg_strcasecmp(par, conf.bot->nick) && nextbot(par)<0) {
     dprintf(idx, "%s isn't a linked bot\n", par);
   }
   botnet_send_cmd(conf.bot->nick, par, dcc[idx].nick, idx, "ver");