egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

.rehash command

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
R-WaT
Halfop


Joined: 06 Jan 2006
Posts: 79

PostPosted: Tue Mar 21, 2006 6:32 pm    Post subject: .rehash command Reply with quote

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
View user's profile Send private message AIM Address
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Mar 21, 2006 7:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
R-WaT
Halfop


Joined: 06 Jan 2006
Posts: 79

PostPosted: Tue Mar 21, 2006 9:58 pm    Post subject: Reply with quote

but still, id rather just type .rehash in any channel then typing /ctcp botname chat ...
Back to top
View user's profile Send private message AIM Address
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Wed Mar 22, 2006 4:38 am    Post subject: Reply with quote

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
View user's profile Send private message
R-WaT
Halfop


Joined: 06 Jan 2006
Posts: 79

PostPosted: Wed Mar 22, 2006 6:44 pm    Post subject: Reply with quote

that dont work, but crashes.
Back to top
View user's profile Send private message AIM Address
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Mar 22, 2006 9:32 pm    Post subject: Reply with quote

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. Smile
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
R-WaT
Halfop


Joined: 06 Jan 2006
Posts: 79

PostPosted: Thu Mar 23, 2006 6:02 pm    Post subject: Reply with quote

works, thanks Smile
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber