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

* Fixed [bot]* cmds depending on case of botnicks.

svn: 2374
Bryan Drewery 21 лет назад
Родитель
Сommit
d9e5f9409f
3 измененных файлов с 6 добавлено и 2 удалено
  1. 4 0
      doc/UPDATES
  2. 1 1
      src/botcmd.c
  3. 1 1
      src/botmsg.c

+ 4 - 0
doc/UPDATES

@@ -11,6 +11,10 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 - Added cmd_iop which will invite the specified nick to a chan and then auto-op them upon joining (does a userhost)
 - Added cmd_iop which will invite the specified nick to a chan and then auto-op them upon joining (does a userhost)
 - Added hijacked invite detection based on server invite notices.
 - Added hijacked invite detection based on server invite notices.
 
 
+1.2.8
+* Fixed [bot]* cmds depending on case of botnicks.
+
+
 1.2.7
 1.2.7
 * Forgot 'log_bad = 0;' to fix the '!' showing up for aliases.
 * Forgot 'log_bad = 0;' to fix the '!' showing up for aliases.
 * When a user is removed and is on partyline, they are now booted. (#142)
 * When a user is removed and is on partyline, they are now booted. (#142)

+ 1 - 1
src/botcmd.c

@@ -127,7 +127,7 @@ void bot_remotecmd(int idx, char *par) {
   if (par[0])
   if (par[0])
     fidx = newsplit(&par);
     fidx = newsplit(&par);
 
 
-  if (!strcmp(tbot, conf.bot->nick)) {
+  if (!egg_strcasecmp(tbot, conf.bot->nick)) {
     gotremotecmd(tbot, fbot, fhnd, fidx, par);
     gotremotecmd(tbot, fbot, fhnd, fidx, par);
   } else if (!strcmp(tbot, "*")) {
   } else if (!strcmp(tbot, "*")) {
     botnet_send_cmd_broad(idx, fbot, fhnd, atoi(fidx), par);
     botnet_send_cmd_broad(idx, fbot, fhnd, atoi(fidx), par);

+ 1 - 1
src/botmsg.c

@@ -84,7 +84,7 @@ int botnet_send_cmd(char * fbot, char * bot, char *fhnd, int fromidx, char * cmd
     simple_snprintf(OBUF, sizeof(OBUF), "rc %s %s %s %i %s\n", bot, fbot, fhnd, fromidx, cmd);
     simple_snprintf(OBUF, sizeof(OBUF), "rc %s %s %s %i %s\n", bot, fbot, fhnd, fromidx, cmd);
     tputs(dcc[i].sock, OBUF, strlen(OBUF));
     tputs(dcc[i].sock, OBUF, strlen(OBUF));
     return 1;
     return 1;
-  } else if (!strcmp(bot, conf.bot->nick)) {
+  } else if (!egg_strcasecmp(bot, conf.bot->nick)) {
     char tmp[24] = "";
     char tmp[24] = "";
 
 
     simple_sprintf(tmp, "%i", fromidx);
     simple_sprintf(tmp, "%i", fromidx);