|
Joined: Sep 2005
Posts: 13
Pikka bird
|
OP
Pikka bird
Joined: Sep 2005
Posts: 13 |
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: 5,024
Hoopy frood
|
Hoopy frood
Joined: Jun 2003
Posts: 5,024 |
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,
Mentality/Chris
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
On @*:Text:*:#total90: {
if ($wildtok($1-,#?*,0,32)) ban -ku900 $nick 1 Advertising, bye!
}
-Andy
|
|
|
|
Joined: Sep 2005
Posts: 13
Pikka bird
|
OP
Pikka bird
Joined: Sep 2005
Posts: 13 |
|
|
|
|
Joined: Sep 2005
Posts: 13
Pikka bird
|
OP
Pikka bird
Joined: Sep 2005
Posts: 13 |
one more problem :/// i dont want to kick ops or voiced users
pLS
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Building from Andy's code:
On @*:Text:*:#total90: {
if ($wildtok($1-,#?*,0,32) && $nick isreg $chan) ban -ku900 $nick 1 Advertising, bye!
}
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Sep 2005
Posts: 13
Pikka bird
|
OP
Pikka bird
Joined: Sep 2005
Posts: 13 |
what is this?
* /ban: invalid parameters (line 2, anti2.mrc)
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Shouldn't be an issue, but try inserting $chan before $nick in the ban statement.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Sep 2005
Posts: 13
Pikka bird
|
OP
Pikka bird
Joined: Sep 2005
Posts: 13 |
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,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
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
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Sep 2005
Posts: 13
Pikka bird
|
OP
Pikka bird
Joined: Sep 2005
Posts: 13 |
they work no error but the script gives the error
|
|
|
|
Joined: Sep 2005
Posts: 13
Pikka bird
|
OP
Pikka bird
Joined: Sep 2005
Posts: 13 |
|
|
|
|
Joined: Sep 2005
Posts: 3
Self-satisified door
|
Self-satisified door
Joined: Sep 2005
Posts: 3 |
You should be using
ban -ku900 # $nick 1 kickmsg
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Try:
On @*:Text:*:#total90: {
if ($wildtok($1-,#?*,0,32) && $nick isreg $chan) ban -ku900 $chan $nick 1 Advertising, bye!
}
-Andy
|
|
|
|
Joined: Sep 2005
Posts: 13
Pikka bird
|
OP
Pikka bird
Joined: Sep 2005
Posts: 13 |
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Hm... I thought I suggested that... "put $chan in front of $nick" .... oh well.
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
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
|
|
|
|
|