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

* Added examples on how to use cmd_set in the helpfile. (#118)

svn: 2294
Bryan Drewery 21 лет назад
Родитель
Сommit
3634bd40c6
2 измененных файлов с 14 добавлено и 5 удалено
  1. 1 0
      doc/UPDATES
  2. 13 5
      misc/help.txt

+ 1 - 0
doc/UPDATES

@@ -44,6 +44,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Added binary config botline output to cmd_newleaf. (#135)
 * Fixed cmd_chattr saving userfile when no changes were made. (#123)
 * Fixed cmd_chattr displaying flags for higher users, therefore bypassing 'whois' restrictions. (#123)
+* Added examples on how to use cmd_set in the helpfile. (#118)
 
 1.2.4
 * Fixed cmd_botset not displaying botnick.

+ 13 - 5
misc/help.txt

@@ -158,7 +158,7 @@ See also: whois
  
    If you want to add a user using a static hostmask, prefix their nick
    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%{-}
@@ -251,7 +251,7 @@ See also: -ban, +ban, console%{+m|m}, chanset, chaninfo%{-}, stick, unstick
  
    Just using '?' for 'bot' will choose a random leaf bot.
    Just using '&' for 'bot' will do the cmd on all localhub bots. (first bot in config).
-
+ 
    This cmd cannot be chained over the botnet, ie, no: .botcmd [bot] botcmd [bot2] ...
  
 See also: bc, cmdpass
@@ -1326,10 +1326,9 @@ See also: w
    Adds a new leaf to the botnet with the specified handle and hostname.
    Any number of hosts can be specified in the cmd. You will need to
    add a hostmask for the bot's ip for it to connect over DCC.
-
+ 
    The binary config botline will also be outputted, but should be
    checked for correctness.
-
 ::newpass
 ###  $bnewpass$b <password|rand>
    Changes your password on the bot. This is similar to the '/msg <bot> pass'
@@ -1343,7 +1342,7 @@ See: handle
 :hub:nopass
 ###  $bnohelp$b [anything]
    Displays all users who do not have a password set.
-
+ 
    Specify any argument to give random passes to users.
 ::note
 ###  $bnote$b <nickname[@bot]> <message>
@@ -1561,6 +1560,15 @@ See also: reload, backup
                           1=plain bitchx, 2=crackrock, 3=neonapple, 4=tunnelvision, 
                           5=argon, 6=evolver, 7=prevail 8=cypress 9=mIRC
  
+ * $bExamples$b:
+ 
+    '%dset realname I have no realname, I'm a bot!'
+    '%dbotset wraith realname The best pack evar!'
+    '%dset +servers irc.efnet.org'
+    '%dset -servers irc.efnet.org'
+    '%dset list servers'
+    '%dset -servers 10'
+    '%dbotset wraith nick -'
  
 See also: botset
 ::sha1