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

* Fixed display bug when bot is msgd with (op|pass|ident|invite) while the respective .config msg option is set to something else.

svn: 1628
Bryan Drewery 21 лет назад
Родитель
Сommit
e1072ec729
2 измененных файлов с 5 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 4 1
      src/mod/server.mod/servmsg.c

+ 1 - 0
doc/UPDATES

@@ -20,6 +20,7 @@ This is a summary of ChangeLog basically.
 * Fixed dcctable list 'leak' (no shift, leaves gaps, now dcclist is shifted only if gap at end)
 * cmd_whois with no parameters now shows your own record.
 * Fixed a typo in cmd_slowjoin.
+* Fixed display bug when bot is msgd with (op|pass|ident|invite) while the respective .config msg option is set to something else.
 
 1.2
 * No longer displaying SALTS on ./bin -v

+ 4 - 1
src/mod/server.mod/servmsg.c

@@ -579,8 +579,11 @@ static int gotmsg(char *from, char *msg)
               sprintf(buf2, "invite");
             else if (!egg_strcasecmp(my_code, msgident))
               sprintf(buf2, "ident");
-            if (buf[0])
+
+            if (buf2[0])
               check_bind_msg(buf2, nick, uhost, my_u, msg);
+            else
+              putlog(LOG_MSGS, "*", "(%s!%s) attempted to use invalid msg cmd '%s'", nick, uhost, my_code);
           }
           if (doit)
             check_bind_msg(my_code, nick, uhost, my_u, msg);