dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1
<kosaho> it keep getting errors http://puu.sh/q7xFM.png
<leftylink> code looks fine, don't see any errors there
<kosaho> from r.rb:30:in `block in <main>'
<kosaho> from /var/lib/gems/2.1.0/gems/cinch-2.3.2/lib/cinch/bot.rb:355:in `instance_eval'
<kosaho> from /var/lib/gems/2.1.0/gems/cinch-2.3.2/lib/cinch/bot.rb:355:in `initialize'
<kosaho> from r.rb:4:in `new'
<kosaho> from r.rb:4:in `<main>'
<leftylink> so that's on line 30, right? if you haven't changed the code that's on the "match" line, right?
<leftylink> if match isn't available, then match isn't being used in a plugin. it has to be a plugin to use match
<kosaho> so I should create a plugin
<kosaho> and require it by "require "x""
<bosma> always recommend plugins
<kosaho> there isn't a alternative for match?
<kosaho> finally I get it working
<kosaho> thank you all
<kosaho> oh, I almost forget
<kosaho> with mIRC script I could use "$replace($2-, $chr(32), +)" to replace space with "_"
<kosaho> there's a way to reproduce it using cinch?
<kosaho> just a ".downcase.tr(' ', '_')" works fine, thank you all
kosaho has quit [Quit: Saindo]
rikai has quit [Ping timeout: 276 seconds]
rikai has joined #cinch
kx has joined #cinch
<kx> Hi. Having some issues with threading, I guess. Can I have a single cinch plugin work in a "serial" way, i.e. do not process messages until you finished processing all previous messages?
<kx> the serial processing would only concern this one plugin. So more precisely: do not process messages directed to a plugin (queue them), until all previous threads originating from that plugin have finished
Rickmasta has quit [Remote host closed the connection]
<dominikh> nope
<bosma> kx: would a mutex work?
<bosma> Wrap every fn with semaphore.synchronize block. http://ruby-doc.org/core-2.2.0/Mutex.html
<bosma> semaphor being created outside plugin
<bosma> speaking of which is there an easy way to wrap a block around every match method in a plugin?
<bosma> would be useful
<bosma> your own custom authentication and above
<bosma> not sure if it would be good design
<leftylink> well that sounds like what a hook would do
Rickmasta has joined #cinch
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]