dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.1.0
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Read error: Connection reset by peer]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
leftylink has quit [Quit: trackbar is broken]
leftylink has joined #cinch
sarkyniin has quit [Ping timeout: 250 seconds]
Azure has quit [Read error: Connection reset by peer]
Azure has joined #cinch
quaxim- has joined #cinch
quaxim has quit [*.net *.split]
sarkyniin has joined #cinch
<IotaSpencer> what would match's options look like with more than one, I can't seem to figure it out, and options = {} doesn't seem to help
<IotaSpencer> specifically react_on and :method
<dominikh> match /foo/, option1: 1, option2: 2
<dominikh> which is just different syntax for match /foo/, {:option1 => 1, :option2 => 2}
<dominikh> it's an ordinary hash, for which Ruby has a multitude of ways of expressing nowadays
<IotaSpencer> usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /home/electrobnc/bncbot/lib/extra.rb:14: syntax error, unexpected tSYMBEG, expecting keyword_do or '{' or '(' (SyntaxError)
<IotaSpencer> ...ed) \(from (.*)\)/, {react_on :notice, method: :get}
<dominikh> that's not remotely what I said.
<dominikh> and even there you'd be missing at least a colon
<IotaSpencer> except when react_on didn't have a colon in the docs
<IotaSpencer> react_on (Symbol, Fixnum) — default: :message —
<IotaSpencer> The event to react on.
<dominikh> please learn at least some basic ruby :)
<IotaSpencer> well sorry to say I try to follow docs anyways
<dominikh> this has nothing to do with the docs and with understanding basic Ruby syntax
<dominikh> *and everything
<IotaSpencer> question, was :notice never added or removed early on because the developer didn't want you to react to notices >_<
<dominikh> :notice exists and is a valid event.
<IotaSpencer> mind giving me a link to it because I can't seem to find it or react to it
<IotaSpencer> /home/electrobnc/bncbot/lib/extra.rb:14:in `<class:LoggerPlugin>': undefined local variable or method `notice' for LoggerPlugin:Class (NameError)
<dominikh> all IRC commands exist as events, NOTICE is an IRC command, so :notice exists – and you're still struggling with Ruby, not with CInch.
Azure has quit [Ping timeout: 250 seconds]
jackdempsey has joined #cinch
Azure has joined #cinch