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.
D
Dizmo
Post
by Dizmo » Wed Jul 28, 2004 10:34 am
Hey im trying to this little script to work. i want to be able to rehash the bot via PM, I dont want it to work in channel though.
Could someone correct this?, dont know where i have gone wrong? Ty
Code: Select all
bind msg m !rehash msg_do_rehash
# rehash the bot
proc msg_do_rehash {nick idx handle args} {}
if {[matchattr $nick +n]} {
rehash
putserv "NOTICE #evated.bots Done!"
}
#end of pub_do_rehash
greenbear
Owner
Posts: 733 Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway
Post
by greenbear » Wed Jul 28, 2004 10:55 am
Code: Select all
bind msg m !rehash msg_do_rehash
proc msg_do_rehash {nick uhost hand arg} {
if {[matchattr $hand +n]} {
rehash
putserv "NOTICE #channel :Done!"
}
}
Don't forget to edit #channel
D
Dizmo
Post
by Dizmo » Wed Jul 28, 2004 1:21 pm
Thanks mate! works fine
i modified #channel to $nick
your a star