dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1
Rickmasta has quit [Read error: Connection reset by peer]
Rickmasta has joined #cinch
iamayam has quit [Ping timeout: 260 seconds]
iamayam has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #cinch
xse has quit [Quit: leaving]
xse has joined #cinch
xse has quit [Quit: leaving]
bazz_ has joined #cinch
<bazz_>
What is more suitable / possible, to create one "match" that can support a command with an optional argument? Or must I create 2 "match" -- one without argument and one with the argument ..
<bazz_>
I have tried for example - 'match(/#{self.const_get :Highscores_str}\s*([0-9].*)/, method: :print_top)' -- but the callback is not called when there is no argument provided
<bazz_>
and yes I see the problem in my regexp
<bazz_>
heh ^_^ '[0-9].*' should be [0-9]* -- and that's ignoring potential spam issues :P heh! will fix
<bazz_>
I realize I am talking a bit more concentrated on my implementation (regexp) so I will cease publicising that kind of talk
<bazz_>
For now, I'll just try using 2 separate match, although I was hoping to consolidate into one
<bazz_>
Hey I think I figured it out :)
<bazz_>
Yeah I've got it working, no need for explanations thanks
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]