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.

Binding, colour and a wildcard!

Help for those learning Tcl or writing their own scripts.
Post Reply
N
Neeq
Voice
Posts: 8
Joined: Thu Mar 01, 2007 10:21 am

Binding, colour and a wildcard!

Post by Neeq »

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: Select all

bind pubm - "\[-TRT-\]*" proc:parse
That is what I am left with right now.

Code: Select all

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
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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

Code: Select all

bind pubm - {% [-TRT-]*} proc:parse
NML_375
N
Neeq
Voice
Posts: 8
Joined: Thu Mar 01, 2007 10:21 am

Post by Neeq »

Works perfectly.

Thanks for that, I was ready to pull my hair out.
Post Reply