Explorar o código

Slightly optimize check in nextbot()

Bryan Drewery %!s(int64=10) %!d(string=hai) anos
pai
achega
52a4819433
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/botnet.cc

+ 1 - 1
src/botnet.cc

@@ -388,7 +388,7 @@ int nextbot(const char *who)
     return -1;
 
   for (int j = 0; j < dcc_total; j++) {
-    if (dcc[j].type && bot->via && !strcasecmp(bot->via->bot, dcc[j].nick) && (dcc[j].type == &DCC_BOT))
+    if (dcc[j].type && bot->via && (dcc[j].type == &DCC_BOT) && !strcasecmp(bot->via->bot, dcc[j].nick))
       return j;
   }