Jelajahi Sumber

* Added even more missing logging for msg_pass (#34)

svn: 2028
Bryan Drewery 21 tahun lalu
induk
melakukan
b4eff27740
2 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 1 1
      doc/UPDATES
  2. 3 1
      src/mod/irc.mod/msgcmds.c

+ 1 - 1
doc/UPDATES

@@ -90,7 +90,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed, or
 * cmd_getkey over .botcmd was displaying excess newlines.
 * cmd_getkey over .botcmd was displaying excess newlines.
 * Rewrote how logs are shared over botnet, now uses much less bw and resources. (#31)
 * Rewrote how logs are shared over botnet, now uses much less bw and resources. (#31)
   -[will break logging during update]
   -[will break logging during update]
-* Added some missing logging for msg_pass
+* Added some missing logging for msg_pass (#34)
 
 
 1.2.2
 1.2.2
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.
 * Don't sanity check flags for users on DCC CHAT if they are on the bot via .botcmd.

+ 3 - 1
src/mod/irc.mod/msgcmds.c

@@ -13,8 +13,10 @@ static int msg_pass(char *nick, char *host, struct userrec *u, char *par)
 
 
   if (match_my_nick(nick))
   if (match_my_nick(nick))
     return BIND_RET_BREAK;
     return BIND_RET_BREAK;
-  if (!u)
+  if (!u) {
+    putlog(LOG_CMDS, "*", "(%s!%s) !*! PASS", nick, host);
     return BIND_RET_BREAK;
     return BIND_RET_BREAK;
+  }
   if (u->bot)
   if (u->bot)
     return BIND_RET_BREAK;
     return BIND_RET_BREAK;
   if (!par[0]) {
   if (!par[0]) {