All pastes #955804 Raw Edit

Something

public text v1 · immutable
#955804 ·published 2008-03-24 21:21 UTC
rendered paste body
proc pub:help {nick uhost hand chan args} {
	global botnick
	set args [split [cleanarg $args]]
	if {[llength $args]<1} {
putlog "HEY HEY i'm < 1"
putlog "hey hey args is $args and llengthargs is [llength $args]"
notice $nick "------pubcmds \002/nsrje \002------------------------------------"
notice $nick ".op <nick> - op a user"
notice $nick ".deop <nick> - deop a user "
notice $nick ".ban <nick/host> <time> <reason> - bans a \002nick/host\002"
notice $nick ".unban <host> - unbans \002host\002 from channel"
notice $nick ".voice <nick> - voice a user"
notice $nick ".devoice <nick> - devoice a user"
notice $nick ".opme - ops you if you have access"
notice $nick ".adduser <handle/nick> \[host\] - adds a user"
notice $nick ".deluser <handle> - removes \002handle\002 from user list"
notice $nick ".chattr <handle> <options> \[channel\] - changes attributes for user"
notice $nick ".addhost <handle> <host> - adds a host to a user"
notice $nick ".delhost <handle> <host> - removes a host from a user"
notice $nick ".disable <handle> - disables a handle from these commands"
notice $nick ".enable <handle> - enables a disabled user"
notice $nick ".ignore <nick/host> <time> <reason> - adds a new ignore"
notice $nick ".unignore <host> - removes an ignore"
notice $nick ".banlist - gives you a banlist for global & channel bans"
notice $nick ".ignorelist - gives you a list of ignores"
notice $nick ".flags <handle> - gives you handle's global flags"
notice $nick ".help <command> - gives a detailed explanation of the specified command"
notice $nick "---------------------------------------------------------"
notice $nick "\002NOTE: Before using any of these commands, you must\002"
notice $nick "\002authenticate yourself with the bot by typing:\002"
notice $nick "\002/msg $botnick auth <your password>\002"
		#end
	} else {
		#start another long section
switch [lindex $args 0] {
	"ignore" {
notice $nick "\002-----ignore-----\002"
notice $nick "Usage: .ignore <nick/host> <time> <reason>"
notice $nick "Flags Needed: o|m (global op or channel master)"
notice $nick "     Creates a new ignore. If nick is on the channel,"
notice $nick "     it will get a hostmask from him, otherwise, it will"
notice $nick "     get it from the one you specify."
	}
	"unignore" {
notice $nick "\002-----unignore-----\002"
notice $nick "Usage: .unignore <host>"
notice $nick "Flags Needed: o|m (global op or channel master)"
notice $nick "     Removes the ignore matching host."
	}
	"ignorelist" {
notice $nick "\002-----ignorelist-----\002"
notice $nick "Usage: .ignorelist"
notice $nick "Flags Needed: o|m (global op or channel master)"
notice $nick "     Gives you a list of active ignores."
	}
	"banlist" {
notice $nick "\002-----banlist-----\002"
notice $nick "Usage: .banlist"
notice $nick "Flags Needed: o|o (global op or channel op)"
notice $nick "     Gives you a list of bans."
	}
	"help" {
		notice $nick "Shithead...."
	}
	"op" {
notice $nick "\002-----op-----\002"
notice $nick "Usage: .op <nick>"
notice $nick "Flags Needed: o|o (global op or channel op)"
notice $nick "     Ops \002nick\002 on the current channel."
	}
	"disable" {
notice $nick "\002-----disable-----\002"
notice $nick "Usage: .disable <handle>"
notice $nick "Flags Needed: n (owner)"
notice $nick "     Disables \002handle\002 from using all commands."
	}
	"enable" {
notice $nick "\002-----enable-----\002"
notice $nick "Usage: .enable <handle>"
notice $nick "Flags Needed: n (owner)"
notice $nick "     Enables \002handle\002 to use all commands."
notice $nick "     NOTE: Only needed if user has been disabled."
	}
	"deop" {
notice $nick "\002-----deop-----\002"
notice $nick "Usage: .deop <nick>"
notice $nick "Flags Needed: o|o (global op or channel op)"
notice $nick "     Deops \002nick\002 on the current channel."
	}
	"ban" {
notice $nick "\002-----ban-----\002"
notice $nick "Usage: .ban <nick/host> <time> <reason>"
notice $nick "Flags Needed: (global op or channel op)"
notice $nick "     If \002nick\002 is on the channel, it will get a"
notice $nick "     hostmask and ban that. If not, it will take the"
notice $nick "     host and ban that instead. \002time\002 is the amount"
notice $nick "     of time in minutes that the ban will last. Putting 0"
notice $nick "     in this field means a permanent ban. \002reason\002 is"
notice $nick "     the reason why you banned the nick (can be anything)."
	}
	"unban" {
notice $nick "\002-----unban-----\002"
notice $nick "Usage: .unban <host>"
notice $nick "Flags Needed: (global op or channel op)"
notice $nick "     Unbans \002host\002 from the channel. It can contain"
notice $nick "     wildcards. Ex: !unban *!*Candy*@*.aol.com"
	}
	"voice" {
notice $nick "\002-----voice-----\002"
notice $nick "Usage: .voice <nick>"
notice $nick "Flags Needed: (global op or channel op)"
notice $nick "     Gives voice to \002nick\002 on current channel."
	}
	"devoice" {
notice $nick "\002-----devoice-----\002"
notice $nick "Usage: .devoice <nick>"
notice $nick "Flags Needed: (global op or channel op)"
notice $nick "     Takes away voice from \002nick\002."
	}
	"opme" {
notice $nick "\002-----opme-----\002"
notice $nick "Usage: .opme"
notice $nick "Flags Needed: (global op or channel op)"
notice $nick "     Gives you op on the channel"
	}
	"adduser" {
notice $nick "\002-----adduser-----\002"
notice $nick "Usage: .adduser <nick> \[host\]"
notice $nick "Flags Needed: n (owner)"
notice $nick "     Adds a user to the userlist with \002nick\002 as their"
notice $nick "     handle. If they are on the channel, and no \002host\002"
notice $nick "     is specified, it will get a hostmask from the channel."
notice $nick "     Otherwise, it will use the host you specify."
	}
	"chattr" {
notice $nick "\002-----chattr-----\002"
notice $nick "Usage: .chattr <handle> <options> \[channel\]"
notice $nick "Flags Needed: n (owner)"
notice $nick "     Changes the flags (\002options\002) of a user (\002handle\002)."
notice $nick "     If \002channel\002 is specified, it will change the channel flags for"
notice $nick "     the user."
	}
	"deluser" {
notice $nick "\002-----deluser-----\002"
notice $nick "Usage: .deluser <handle>"
notice $nick "Flags Needed: n (owner)"
notice $nick "     Completely removes a user record from the bot."
	}
	"addhost" {
notice $nick "\002-----addhost-----\002"
notice $nick "Usage: .addhost <handle> <host>"
notice $nick "Flags Needed: m|n (global master or channel owner)"
notice $nick "     Adds \002host\002 to user record for \002handle\002."
	}
	"rmhost" {
notice $nick "\002-----delhost-----\002"
notice $nick "Usage: .delhost <handle> <host>"
notice $nick "Flags Needed: m|n (global master or channel owner)"
notice $nick "     Removes host from \002handle\002."
	}
}
}
}