egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Question to a script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Fraud
Op


Joined: 19 May 2008
Posts: 101

PostPosted: Wed Aug 18, 2010 2:13 pm    Post subject: Question to a script Reply with quote

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:
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'."
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber