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.

!rehash pm

Old posts that have not been replied to for several years.
Locked
D
Dizmo

!rehash pm

Post by Dizmo »

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
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

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 »

Thanks mate! works fine :)
i modified #channel to $nick :)
your a star :)
Locked