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 command

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
R
R-WaT
Halfop
Posts: 79
Joined: Fri Jan 06, 2006 7:45 pm

.rehash command

Post by R-WaT »

can someone whip up a small script so when i type .rehash in anychannel the bot is in, it will rehash.

and have it reply back "Bot has been rehashed." or w/e. thanks
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Common sense dictates this be done from the command console not via a public script.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
R
R-WaT
Halfop
Posts: 79
Joined: Fri Jan 06, 2006 7:45 pm

Post by R-WaT »

but still, id rather just type .rehash in any channel then typing /ctcp botname chat ...
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

bind n|- .rehash pub:rehash

proc pub:rehash {nick host hand chan text} {
  rehash
  putserv "PRIVMSG $chan :Bot has been rehashed."
}
R
R-WaT
Halfop
Posts: 79
Joined: Fri Jan 06, 2006 7:45 pm

Post by R-WaT »

that dont work, but crashes.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

R-WaT wrote:that dont work, but crashes.
Try this:

Code: Select all

bind pub n|- .rehash pub:rehash

proc pub:rehash {nick host hand chan text} {
  rehash
  putserv "PRIVMSG $chan :Bot has been rehashed."
}
Has been tested. :)
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
R
R-WaT
Halfop
Posts: 79
Joined: Fri Jan 06, 2006 7:45 pm

Post by R-WaT »

works, thanks :)
Post Reply