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 

What to add to this public command?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
piggy
Voice


Joined: 21 Aug 2005
Posts: 14
Location: London

PostPosted: Fri Dec 23, 2005 11:46 am    Post subject: What to add to this public command? Reply with quote

Hey guys

With the following i would like to know what i can add to it in order to make it that a user is restricted to use the public command once in 5 minutes

Code:
set chanstats {
"url to stats"

}
bind pub - !stats pub:s
proc pub:s {nick uhost hand chan text} {
global chanstats
set statsnick [lindex [split $text " "] 0]
if {$text != "" && [onchan $statsnick $chan]} {
foreach line $chanstats { putquick "NOTICE $statsnick :$line" }
return 0
}
foreach line $chanstats {putquick "PRIVMSG $chan :$line" }
}


Any help much appreciated

Thanks
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Dec 24, 2005 2:49 am    Post subject: Reply with quote

Code:

if {![info exists ::ts] || [unixtime] - $::ts > 300} {set ::ts [unixtime]} {return}

_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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