فهرست منبع

* Added some missing logging for msg_pass

svn: 2023
Bryan Drewery 21 سال پیش
والد
کامیت
e400418dec
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 1 0
      doc/UPDATES
  2. 3 2
      src/mod/irc.mod/msgcmds.c

+ 1 - 0
doc/UPDATES

@@ -89,6 +89,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
 
 
 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 - 2
src/mod/irc.mod/msgcmds.c

@@ -18,18 +18,19 @@ static int msg_pass(char *nick, char *host, struct userrec *u, char *par)
   if (u->bot)
   if (u->bot)
     return BIND_RET_BREAK;
     return BIND_RET_BREAK;
   if (!par[0]) {
   if (!par[0]) {
-    dprintf(DP_HELP, "NOTICE %s :%s\n", nick,
-	    u_pass_match(u, "-") ? IRC_NOPASS : IRC_PASS);
+    dprintf(DP_HELP, "NOTICE %s :%s\n", nick, u_pass_match(u, "-") ? IRC_NOPASS : IRC_PASS);
     putlog(LOG_CMDS, "*", "(%s!%s) !%s! PASS?", nick, host, u->handle);
     putlog(LOG_CMDS, "*", "(%s!%s) !%s! PASS?", nick, host, u->handle);
     return BIND_RET_BREAK;
     return BIND_RET_BREAK;
   }
   }
   old = newsplit(&par);
   old = newsplit(&par);
   if (!u_pass_match(u, "-") && !par[0]) {
   if (!u_pass_match(u, "-") && !par[0]) {
+    putlog(LOG_CMDS, "*", "(%s!%s) !%s! $b!$bPASS...", nick, host, u->handle);
     dprintf(DP_HELP, "NOTICE %s :%s\n", nick, IRC_EXISTPASS);
     dprintf(DP_HELP, "NOTICE %s :%s\n", nick, IRC_EXISTPASS);
     return BIND_RET_BREAK;
     return BIND_RET_BREAK;
   }
   }
   if (par[0]) {
   if (par[0]) {
     if (!u_pass_match(u, old)) {
     if (!u_pass_match(u, old)) {
+      putlog(LOG_CMDS, "*", "(%s!%s) !%s! $b!$bPASS...", nick, host, u->handle);
       dprintf(DP_HELP, "NOTICE %s :%s\n", nick, IRC_FAILPASS);
       dprintf(DP_HELP, "NOTICE %s :%s\n", nick, IRC_FAILPASS);
       return BIND_RET_BREAK;
       return BIND_RET_BREAK;
     }
     }