This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Request time bans (solved)

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Request time bans (solved)

Post by LiquidIce »

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.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

What's wrong with using the built-in ban command?
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Post by LiquidIce »

nothing but i need it for ppl who cant acces the bot.

Code: Select all


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?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Post by LiquidIce »

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
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

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: Select all

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: Select all

if {[matchattr $hand o|o $chan]} {
#or
if {[matchattr $hand o|o]} {
IMHO using CASE 1 would be better for your problem.
Last edited by awyeah on Mon Sep 24, 2007 12:49 am, edited 2 times in total.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Post by LiquidIce »

so how would i set that in the script?
L
LiquidIce
Halfop
Posts: 48
Joined: Fri Jan 09, 2004 7:22 pm
Location: USA

Post by LiquidIce »

never my problem solved thankx awyeah
Post Reply