Skip to content

Commit

Permalink
tidied up help section
Browse files Browse the repository at this point in the history
  • Loading branch information
rvzm committed Mar 10, 2019
1 parent 3f0cf93 commit 895ef8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ v0.7.9-rc1
- changed entire system from using nick/account combo to just account
- moved some utils from proc namespace to util namespace
- removed 'info' from help
- tidied up help section

v0.7.9
- cleaned up README, restarted active development
Expand Down
15 changes: 7 additions & 8 deletions zconf.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -291,18 +291,17 @@ namespace eval zconf {
set v5 [lindex [split $text] 4]
set v6 [lindex [split $text] 5]
if {![llength [split $v1]]} { putserv "PRIVMSG $chan :zconf::help - use the 'commands' subcommand for help with commands"; return }
putserv "PRIVMSG $chan :zconf::help - $v1"
if {$v1 == "commands"} {
putserv "PRIVMSG $chan :version request approve status admins access pwdgen"
putserv "PRIVMSG $chan :use 'help \037command\037' for more info"
}
if {$v1 == "version"} { putserv "PRIVMSG $chan :zconf::help - Prints version information"; return }
if {$v1 == "request"} { putserv "PRIVMSG $chan :zconf::help - Request a ZNC account"; return }
if {$v1 == "approve"} { putserv "PRIVMSG $chan :zconf::help - Approve your account with the given code"; return }
if {$v1 == "status"} { putserv "PRIVMSG $chan :zconf::help - Show server status, uptime, and load"; return }
if {$v1 == "admins"} { putserv "PRIVMSG $chan :zconf::help - Shows current zConf admin listing"; return }
if {$v1 == "access"} { putserv "PRIVMSG $chan :zconf::help - Shows access information for ZNC"; return }
if {$v1 == "pwdgen"} { putserv "PRIVMSG $chan :zconf::help - Generates a random password for you"; return }
if {$v1 == "version"} { putserv "PRIVMSG $chan :zconf::help| $v1 - Prints version information"; return }
if {$v1 == "request"} { putserv "PRIVMSG $chan :zconf::help| $v1 - Request a ZNC account"; return }
if {$v1 == "approve"} { putserv "PRIVMSG $chan :zconf::help| $v1 - Approve your account with the given code"; return }
if {$v1 == "status"} { putserv "PRIVMSG $chan :zconf::help| $v1 - Show server status, uptime, and load"; return }
if {$v1 == "admins"} { putserv "PRIVMSG $chan :zconf::help| $v1 - Shows current zConf admin listing"; return }
if {$v1 == "access"} { putserv "PRIVMSG $chan :zconf::help| $v1 - Shows access information for ZNC"; return }
if {$v1 == "pwdgen"} { putserv "PRIVMSG $chan :zconf::help| $v1 - Generates a random password for you"; return }
}
}
namespace eval util {
Expand Down

0 comments on commit 895ef8e

Please sign in to comment.