dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.10
<Rickmasta> dominikh: So, I guess there are different kinds of colors?
<dominikh> yes. there's red, blue, yellow, ...
<Rickmasta> because I'm gettting colors like "\u0002"
<dominikh> you won't be getting just that. free-standing it doesn't make sense (or is at least not part of a formatting sequence)
<Rickmasta> \u0002\u00033U\u000312N\u000313O\u000308!\u0002\u0003 0.98.9 by Marky
<Rickmasta> An example of one line.
<dominikh> all color sequences start with a \x03
<Rickmasta> text.gsub!(/[\u0002\u000f\u0016\u001f\u0012]|\u0003([01]\d?(,[01]\d?)?)?/, '')
<Rickmasta> I tried adding that after your gsub
<dominikh> stop arbitrarily editting things then :)
<Rickmasta> Lol what do you mean?
<Rickmasta> I was trying to fix it. :D
<dominikh> that adding stuff to things you don't understand won't make them magically work. try to understand where the \x02 is coming from first. free-standing, it's not a valid color code in mIRC, kvIRC or ansi color coding.
<dominikh> ah, blimey
<dominikh> \x02 is bold.
<dominikh> but my regexp is stripping \x02 just fine
<dominikh> so what's the issue here?
<Rickmasta> Well, when I test the commands in my channel without colors, they work.
<Rickmasta> But when I test them with colors, they don't.
<dominikh> then show the code of your match
<Rickmasta> match "UNO! You have 30s to join uno", method: :join, strip_colors: true
<Rickmasta> def join(m)
<Rickmasta> end
<Rickmasta> m.reply "jo"
<dominikh> and have you changed the default plugin prefix, like I did in my example?
<Rickmasta> yup
<dominikh> ah, dammit
<Rickmasta> What's up?
<dominikh> mIRC color codes being a retarded format :)
<Rickmasta> If it matters the unobot was written in eggdrop
<Rickmasta> not sure if it makes a difference.
<dominikh> update your git clone, build a new gem
<dominikh> should work then
<Rickmasta> It's working!
<Rickmasta> Thanks dominikh!
<dominikh> great
<dominikh> cheers
Space has quit [Read error: Connection reset by peer]
Space has joined #cinch
abolishme is now known as abolishme_sleep
<dominikh> and sorry for the somewhat rude reaction, I was in a hurry.
<catepillar> wrong room?
<catepillar> lol
<dominikh> nope
<catepillar> i didn't think you were being rude at all
Rickmasta has quit [Ping timeout: 252 seconds]
leftylink has quit [Read error: Operation timed out]
robonerd has quit [Read error: Connection reset by peer]
robonerd has joined #cinch
leftylink has joined #cinch
Space has quit [Quit: No Ping reply in 180 seconds.]
Space has joined #cinch
Space has quit [Remote host closed the connection]
Space has joined #cinch
kludge` has quit [Ping timeout: 252 seconds]
Space has quit [Remote host closed the connection]
kludge` has joined #cinch
postmodern has quit [Quit: Leaving]
Space has joined #cinch
leftylink has quit [Ping timeout: 245 seconds]
Space has quit [Remote host closed the connection]
leftylink has joined #cinch
Space has joined #cinch
Space has quit [Read error: Connection reset by peer]
Rickmasta has joined #cinch
ayonix_ has joined #cinch
Azure|dc has joined #cinch
Azure|dc has quit [Changing host]
Azure|dc has joined #cinch
ayonix has quit [*.net *.split]
Azure has quit [*.net *.split]
dominikh has quit [*.net *.split]
oddmunds has quit [*.net *.split]
Azure|dc is now known as Azure
oddmunds has joined #cinch
dominikh has joined #cinch
Zackio has quit [Quit: ZNC - http://znc.in]
ayonix_ is now known as ayonix
Zackio has joined #cinch
somasonic has joined #cinch
<somasonic> hi - where can I use on :event triggers?
<somasonic> they do not work inside plugins, but I do not want to put it in the block initial block
<somasonic> s/block initial/bot initial/
<catepillar> here is an auto voice example, which has a listen_to :join
<catepillar> and a google plugin in that has a match in it
<somasonic> catepillar, what if I wanted to listen to multiple events?
<somasonic> which I do
<catepillar> add multiple listeners
<somasonic> listen_to :join, method: :join
<somasonic> ?
<catepillar> it's listening to joins, and on a join, it executes the join method
<catepillar> here is one with a match for join and a seperate match for part
<somasonic> great. thanks
<catepillar> all these examples are found https://github.com/cinchrb/cinch/tree/master/examples/plugins
<somasonic> i did actually look briefly through those but obviously did not link the listen_to method to the on method from docs
Space has joined #cinch
_whitelogger has joined #cinch
postmodern has joined #cinch
abolishme_sleep is now known as abolishme
space has quit [Changing host]
space has joined #cinch
space has quit [Read error: Connection reset by peer]
kith has quit [Quit: kith]
kith has joined #cinch