This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Question to a script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
F
Fraud
Op
Posts: 101
Joined: Mon May 19, 2008 7:57 am

Question to a script

Post by Fraud »

Hello. I am runnig some scripts of wiebe. Included is a script called ban.tcl. This script should allow to ban a user just for a certain period.
I tried this /msg BOTName ban add #chan USER 2n just a reason
But the duration wont work and i dont get it, from the syntax, what i have to enter, to ban a user just for this certain period? Thanks for some help.

Followed is the syntax help from the script wich can be found @ http://www.xs4all.nl/~wiebeson/newtcl/ban.tcl


Code: Select all

proc ban:help { t } {
  set c [string tolower [lindex [split $t] 1]]
  if {$c == "add"} {
    lappend o "ban: ban \[<chan>\] add <mask> \[\[<mask> .. <mask>\] \[%<duration> :\]\]\[@\]<reason>"
    lappend o "ban: adds bans to the ban list, multiple masks can be specified. use #<account> for mask to ban *!*@<account>.users.quakenet.org. if mask is a nick and on a channel with the bot, the user is banned on *!user@host or *!*@host, else nick!*@* is banned. prefix mask with @ to make the ban hidden, targets are banned on *!*@host (example @*!*baduser@*.isp.tld). for quick removal of users, use the 'out' or 'chanout' command."
    lappend o "ban: the ':' prefixing the reason is required when using multiple masks or duration. duration supports the following: s=second, n=minute, h=hour, d=day, w=week, m=month, y=year, example %1d2h. default is 4 hours, use %0 for perm bans. only +m or higher can set perm bans and bans longer than 4 weeks."
    lappend o "ban: the reason can be a custom reason, one predefined from the rule command or a term from the term database (use ?? \[<chan>\] <term>). prefix the reason with a '@' to hide it, targets get kicked with 'You are banned'."
Post Reply