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.
Old posts that have not been replied to for several years.
-
t
thetorpor
Post
by thetorpor »
What I'm after is how to limit the use of a particular command. Allow it once, then not allow it for say 10 seconds (to prevent ppl abusing it)
Thanks in advance
-Torp
-
Wcc
- Master
- Posts: 278
- Joined: Sun Oct 28, 2001 8:00 pm
- Location: USA
-
Contact:
Post
by Wcc »
Why not just choose owners that won't abuse commands?
-
t
thetorpor
Post
by thetorpor »
Because its for commands in channel, such as !hp to display the channel homepage, etc. These have to be available to everyone
-
t
thetorpor
Post
by thetorpor »
anyone?
-
M
Mordred
Post
by Mordred »
This should do the job..
#number of seconds between allowed triggers
set hptimer 10
bind pub - "!hp" hpcheck
set hprunning 0
proc hpcheck {nick host hand chan params} {
global hptimer hprunning
if {!$hprunning} {
putserv "PRIVMSG #channelofyourchoice : Homepage=
http://my.url"
set hprunning 1
utimer $hptimer {set hprunning 0}
}
}