mIRC Home    About    Download    Register    News    Help

Print Thread
#141762 13/02/06 12:26 AM
Joined: Feb 2006
Posts: 95
B
blk Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
I want to kick\ban somebody with a command and also set a timer on the ban...
I want to type !kickb 30, then it would kick\ban for 30 seconds.
Then after 30 seconds is up it would remove the ban...


-blk-
#141763 13/02/06 12:32 AM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Code:
on @*:TEXT:!ban *:#Channel:{
  if ($2 ison $chan && $3 isnum) ban -ku $+ $3 $chan $2 2
}


Useage: !ban <nick> <duration>

#141764 13/02/06 12:45 AM
Joined: Feb 2006
Posts: 95
B
blk Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
Is there anyway I can add the reason being - kicked for <#> seconds


-blk-
#141765 13/02/06 01:06 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
 on @*:TEXT:!ban *:#Channel:{
  if ($2 ison $chan &amp;&amp; $3 isnum) ban -ku $+ $3 $chan $2 2 $4-
}
 


Useage: !ban <nick> <duration> <reason>

#141766 13/02/06 01:30 AM
Joined: Feb 2006
Posts: 95
B
blk Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
I made it with auto reason :tongue:
Pretty easy when I thought about it...
Code:
on *:TEXT:!kbt *:#:if ($2 ison $chan &amp;&amp; $3 isnum) {
ban -ku $+ $3 $chan $2 2 banned for $3 seconds
}


-blk-

Link Copied to Clipboard