| View previous topic :: View next topic |
| Author |
Message |
R-WaT Halfop
Joined: 06 Jan 2006 Posts: 79
|
Posted: Tue Mar 21, 2006 6:32 pm Post subject: .rehash command |
|
|
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 |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Mar 21, 2006 7:38 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
R-WaT Halfop
Joined: 06 Jan 2006 Posts: 79
|
Posted: Tue Mar 21, 2006 9:58 pm Post subject: |
|
|
| but still, id rather just type .rehash in any channel then typing /ctcp botname chat ... |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Wed Mar 22, 2006 4:38 am Post subject: |
|
|
| Code: | bind n|- .rehash pub:rehash
proc pub:rehash {nick host hand chan text} {
rehash
putserv "PRIVMSG $chan :Bot has been rehashed."
} |
|
|
| Back to top |
|
 |
R-WaT Halfop
Joined: 06 Jan 2006 Posts: 79
|
Posted: Wed Mar 22, 2006 6:44 pm Post subject: |
|
|
| that dont work, but crashes. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Mar 22, 2006 9:32 pm Post subject: |
|
|
| R-WaT wrote: | | that dont work, but crashes. |
Try this:
| Code: | 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 |
|
| Back to top |
|
 |
R-WaT Halfop
Joined: 06 Jan 2006 Posts: 79
|
Posted: Thu Mar 23, 2006 6:02 pm Post subject: |
|
|
works, thanks  |
|
| Back to top |
|
 |
|