Przeglądaj źródła

* cmd_adduser now sends a NOTICE to the person being added with their initial password.

svn: 2213
Bryan Drewery 21 lat temu
rodzic
commit
42e4b52df7
3 zmienionych plików z 5 dodań i 0 usunięć
  1. 1 0
      doc/UPDATES
  2. 2 0
      misc/help.txt
  3. 2 0
      src/mod/irc.mod/cmdsirc.c

+ 1 - 0
doc/UPDATES

@@ -16,6 +16,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 
 
 1.2.4
 1.2.4
 * Fixed cmd_botset not displaying botnick.
 * Fixed cmd_botset not displaying botnick.
+* cmd_adduser now sends a NOTICE to the person being added with their initial password.
 
 
 1.2.3
 1.2.3
 
 

+ 2 - 0
misc/help.txt

@@ -158,6 +158,8 @@ See also: whois
  
  
    If you want to add a user using a static hostmask, prefix their nick
    If you want to add a user using a static hostmask, prefix their nick
    with a '!'. i.e. .adduser !Lamer
    with a '!'. i.e. .adduser !Lamer
+
+   The user being added is sent a NOTICE with their initial password.
  
  
 See also: +host, -host%{+m}, +user, -user%{-}
 See also: +host, -host%{+m}, +user, -user%{-}
 :leaf:authed:
 :leaf:authed:

+ 2 - 0
src/mod/irc.mod/cmdsirc.c

@@ -1590,6 +1590,8 @@ static void cmd_adduser(int idx, char *par)
     dprintf(idx, "Added [%s]%s with no flags.\n", hand, p1);
     dprintf(idx, "Added [%s]%s with no flags.\n", hand, p1);
     dprintf(idx, "%s's initial password set to \002%s\002\n", hand, s2);
     dprintf(idx, "%s's initial password set to \002%s\002\n", hand, s2);
     dprintf(idx, "%s's initial secpass set to \002%s\002\n", hand, s3);
     dprintf(idx, "%s's initial secpass set to \002%s\002\n", hand, s3);
+
+    dprintf(DP_HELP, "NOTICE %s :*** You've been add to this botnet as '%s' with the host '%s'. Ask a botnet admin for the msg cmds. Your initial password is: %s\n", nick, hand, p1, s2);
   } else {
   } else {
     dprintf(idx, "Added hostmask %s to %s.\n", p1, u->handle);
     dprintf(idx, "Added hostmask %s to %s.\n", p1, u->handle);
     addhost_by_handle(hand, p1);
     addhost_by_handle(hand, p1);