|
ShAlkE
|
ShAlkE
|
i have made this script to ban ppl if they use a ban word.. but i want the script to unban that person after 15 min ? how do i do this? i time ban i need!!
on 1*:TEXT:#*:#: { if ($nick isreg $chan) { /ban #total90 $nick 1 | /kick #total90 $nick Advertising, bye! } }
|
|
|
|
Joined: Jun 2003
Posts: 4,670
Hoopy frood
|
Hoopy frood
Joined: Jun 2003
Posts: 4,670 |
on 1*:TEXT:#*:#: { if ($nick isreg $chan) { /ban #total90 $nick 1 | /kick #total90 $nick Advertising, bye! } } There's no point specifying '1' if you're going to specify '*' as the access level. Also note, you do not need to include the / command prefix in a script. And finally, you can use the -k switch with the /ban command to save making separate /ban and /kick commands. To unban an address after a set time, use the -u switch with the /ban command. For example, /ban -ku300 # $nick 3 Advertising would kick and ban a *!*user@*.domain for 'Advertising', and unban them automatically after 300 seconds (5 minutes). The time must be specified in seconds. Also see: /help on text /help /banRegards,
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
On @*:Text:*:#total90: {
if ($wildtok($1-,#?*,0,32)) ban -ku900 $nick 1 Advertising, bye!
}
-Andy
|
|
|
|
ShAlkE
|
ShAlkE
|
one more problem :/// i dont want to kick ops or voiced users
pLS
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,061 |
Building from Andy's code:
On @*:Text:*:#total90: {
if ($wildtok($1-,#?*,0,32) && $nick isreg $chan) ban -ku900 $nick 1 Advertising, bye!
}
|
|
|
|
ShAlkE
|
ShAlkE
|
what is this?
* /ban: invalid parameters (line 2, anti2.mrc)
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,061 |
Shouldn't be an issue, but try inserting $chan before $nick in the ban statement.
|
|
|
|
ShAlkE
|
ShAlkE
|
Riamus2 i did what you sayed, but didn`t work   * /ban: invalid parameters (line 2, anti2.mrc) how do i fix this?
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,061 |
Try typing in the channel where you're opped (replace NICK with a valid nick):
/ban -ku900 NICK 1 Advertising, bye!
If that gives an error, try:
/ban -ku900 NICK 1
|
|
|
|
ShAlkE
|
ShAlkE
|
they work  no error but the script gives the error
|
|
|
|
spleenie
|
spleenie
|
You should be using
ban -ku900 # $nick 1 kickmsg
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
Try:
On @*:Text:*:#total90: {
if ($wildtok($1-,#?*,0,32) && $nick isreg $chan) ban -ku900 $chan $nick 1 Advertising, bye!
}
-Andy
|
|
|
|
Joined: Oct 2004
Posts: 8,061
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,061 |
Hm... I thought I suggested that... "put $chan in front of $nick" .... oh well.
|
|
|
|
Joined: Dec 2002
Posts: 3,534
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,534 |
You mean before dude, and you did mention it. Maybe they didn't know what you mean, some people like to be shown the way fully. Should they have looked at the syntax of /ban in the help file then they'd have got it no problem at all..  -Andy
|
|
|
|
|