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 

execute a bind when the command starts with a [ or a space

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
wac
Halfop


Joined: 10 Dec 2006
Posts: 80
Location: in my cardboard box

PostPosted: Wed Dec 17, 2008 12:20 am    Post subject: execute a bind when the command starts with a [ or a space Reply with quote

I've tried several binds to execute a line which starts with a [ or better yet to strip the brackets out all together to no avail.

something like this is what I need:

bind pubm * "*\[*bob*\]*" my::proc
_________________
I see j00!
Back to top
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Wed Dec 17, 2008 7:06 am    Post subject: Reply with quote

u mean:
Code:
bind pub - {[bob]} zonk

proc zonk { nick uhost hand chan arg } {
        putquick "PRIVMSG $chan :It works!"
}


Quote:
12:06:35 <@tomekk> [bob] a b c d e
12:06:36 < botty> It works!


:>
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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