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 

Binding, colour and a wildcard!

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


Joined: 01 Mar 2007
Posts: 8

PostPosted: Fri Nov 07, 2008 12:35 pm    Post subject: Binding, colour and a wildcard! Reply with quote

Hi there,

I've been trying different combinations all night to try and get this to work properly, I have yet to find the correct one, being 3AM I thought I would just ask someone who knows what they are doing!

Anyway.
Code:
bind pubm - "\[-TRT-\]*" proc:parse

That is what I am left with right now.

Code:
12[-TRT-]15-[003]

(12 and 15 are colour codes, from mIRC)

That is how the text comes from mIRC. I am using a script that I found on here to strip codes from binds which I originally thought was causing the problems, but even with that in place it is not picking up any text beginning with [-TRT-].

If I discard the backslashes it errors.

Any help would be appreciated.

Note: URL to the stripping code: http://forum.egghelp.org/viewtopic.php?p=77019
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Nov 07, 2008 1:22 pm    Post subject: Reply with quote

Using pubm-bindings, the mask must match "channel message", not "message". Change the binding to something like this instead:

Code:
bind pubm - {% [-TRT-]*} proc:parse

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Neeq
Voice


Joined: 01 Mar 2007
Posts: 8

PostPosted: Fri Nov 07, 2008 1:38 pm    Post subject: Reply with quote

Works perfectly.

Thanks for that, I was ready to pull my hair out.
Back to top
View user's profile Send private message
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