| View previous topic :: View next topic |
| Author |
Message |
LiquidIce Halfop
Joined: 09 Jan 2004 Posts: 48 Location: USA
|
Posted: Sun Sep 23, 2007 10:25 pm Post subject: Request time bans (solved) |
|
|
is there a way to make certain commands for certain timed bans.
!b perm !b2 hour ban !b3 30 min and so on...
i check archive havent seen much that really did that anyone could make something like that
Last edited by LiquidIce on Mon Sep 24, 2007 12:58 am; edited 1 time in total |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sun Sep 23, 2007 11:31 pm Post subject: |
|
|
| What's wrong with using the built-in ban command? |
|
| Back to top |
|
 |
LiquidIce Halfop
Joined: 09 Jan 2004 Posts: 48 Location: USA
|
Posted: Sun Sep 23, 2007 11:49 pm Post subject: |
|
|
nothing but i need it for ppl who cant acces the bot.
| Code: |
proc proc_ban2 { nick uhost hand chan text } {
global botnick
if {[onchan $text]} {
if {$text == $botnick} { return 0 }
set banmask [getchanhost $text $chan]
putquick "MODE $chan +b $banmask"
putkick $chan $text :Requested
utimer 5 "putserv {MODE $chan -b $banmask}"
} else { putserv "PRIVMSG $chan :$text Is Not In The Channel" }
}
|
but that removes in 5 secs how can i make it longer? |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Sep 24, 2007 12:32 am Post subject: |
|
|
http://tcl.powersource.cx/eggtclh09.php
timer <minutes> <tcl-command>
Description: executes the given Tcl command after a certain number of minutes have passed
Returns: a timerID
Module: core
utimer <seconds> <tcl-command>
Description: executes the given Tcl command after a certain number of seconds have passed
Returns: a timerID
Module: core |
|
| Back to top |
|
 |
LiquidIce Halfop
Joined: 09 Jan 2004 Posts: 48 Location: USA
|
Posted: Mon Sep 24, 2007 12:41 am Post subject: |
|
|
thankx. how can i get the script to be used by roomops
i added to themto the bot
i added them as +o but seems its not working i have it o|o in the script |
|
| Back to top |
|
 |
awyeah Revered One

Joined: 26 Apr 2004 Posts: 1580 Location: Switzerland
|
Posted: Mon Sep 24, 2007 12:46 am Post subject: |
|
|
CASE 1:
You mean you want the script to only work with channel ops?
(1) Use bind with "-" flag
(2) Add a check in the beginning of the proc
| Code: |
if {[isop $nick $chan]} {
#continue with ur proc here
|
CASE 2:
- If you added the user as global op then in bind you use "o|-" or you can even use "o|o"
- If you added the user as channel op then in bind you use "-|o"
Or you can just specify "-" in bind and then use:
(if your matching a global op or a channel op)
| Code: |
if {[matchattr $hand o|o $chan]} {
#or
if {[matchattr $hand o|o]} {
|
IMHO using CASE 1 would be better for your problem. _________________ ·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Last edited by awyeah on Mon Sep 24, 2007 12:49 am; edited 2 times in total |
|
| Back to top |
|
 |
LiquidIce Halfop
Joined: 09 Jan 2004 Posts: 48 Location: USA
|
Posted: Mon Sep 24, 2007 12:48 am Post subject: |
|
|
| so how would i set that in the script? |
|
| Back to top |
|
 |
LiquidIce Halfop
Joined: 09 Jan 2004 Posts: 48 Location: USA
|
Posted: Mon Sep 24, 2007 12:56 am Post subject: |
|
|
| never my problem solved thankx awyeah |
|
| Back to top |
|
 |
|