egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Request time bans (solved)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
LiquidIce
Halfop


Joined: 09 Jan 2004
Posts: 48
Location: USA

PostPosted: Sun Sep 23, 2007 10:25 pm    Post subject: Request time bans (solved) Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sun Sep 23, 2007 11:31 pm    Post subject: Reply with quote

What's wrong with using the built-in ban command?
Back to top
View user's profile Send private message
LiquidIce
Halfop


Joined: 09 Jan 2004
Posts: 48
Location: USA

PostPosted: Sun Sep 23, 2007 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Sep 24, 2007 12:32 am    Post subject: Reply with quote

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
View user's profile Send private message
LiquidIce
Halfop


Joined: 09 Jan 2004
Posts: 48
Location: USA

PostPosted: Mon Sep 24, 2007 12:41 am    Post subject: Reply with quote

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
View user's profile Send private message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Mon Sep 24, 2007 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
LiquidIce
Halfop


Joined: 09 Jan 2004
Posts: 48
Location: USA

PostPosted: Mon Sep 24, 2007 12:48 am    Post subject: Reply with quote

so how would i set that in the script?
Back to top
View user's profile Send private message
LiquidIce
Halfop


Joined: 09 Jan 2004
Posts: 48
Location: USA

PostPosted: Mon Sep 24, 2007 12:56 am    Post subject: Reply with quote

never my problem solved thankx awyeah
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber