<maetthew>
dominikh: is it possible to strip colour codes from a match?
v0n has joined #cinch
<catepillar>
maetthew: currently, not yet
<catepillar>
we were discussing it a 2 weeks ago
<catepillar>
well, you can if it happens after the !
<catepillar>
or whatever you have set to be your prepended match
<catepillar>
prefix, that's the word
<crackedmind>
what about variadic args in plugin marcher?
v0n has quit [Ping timeout: 260 seconds]
jhaals has quit []
v0n has joined #cinch
jhaals has joined #cinch
jhaals has quit []
jhaals has joined #cinch
jhaals has quit [Client Quit]
jhaals has joined #cinch
jhaals has quit []
jhaals has joined #cinch
jhaals has quit [Client Quit]
<crackedmind>
ok
<maetthew>
catepillar, hmm ok. In this particular case I have no prefix :/
v0n has quit [Ping timeout: 240 seconds]
<lagweezle>
Is it possible to use a lambda for a plugin's prefix? If so, er, how?
<lagweezle>
Alternatively…
<lagweezle>
match lambda {|m| m.bot.nick} <-- how would I have that also have retained match portions? Can I, or do I just have to parse the entire message?
<waxjar>
lagweezle: you can use lambdas as a prefix
<lagweezle>
Thankee! *stashes for when his brain works better*
<crackedmind>
I am glad you will need it
_whitelogger has joined #cinch
catepillar has quit [Quit: I generally avoid temptation.. unless I can't resist it.]
crackedmind has quit [Ping timeout: 264 seconds]
<dominikh>
if you use a lambda for the match (or the prefix/suffix), it's expected to return a string or regexp, which is then used instead. so that's how you'd do capture groups