dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.10
davidboy has joined #cinch
space has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
awkisopen is now known as wolvesisopen
wolvesisopen is now known as awkisopen
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
<rickmasta> Hi all.
rickmasta has quit [*.net *.split]
resure has quit [*.net *.split]
v0n has quit [*.net *.split]
sindork has quit [*.net *.split]
catepillar has quit [*.net *.split]
Spami has joined #cinch
space has quit [Read error: Connection reset by peer]
Spami has quit [Quit: This computer has gone to sleep]
tempesta1 has joined #cinch
somasonic_ has joined #cinch
catepillar has joined #cinch
rickmasta has joined #cinch
resure has joined #cinch
sindork has joined #cinch
v0n has joined #cinch
tempestas has quit [*.net *.split]
somasonic has quit [*.net *.split]
somasonic_ is now known as somasonic
robonerd has quit [Remote host closed the connection]
robonerd has joined #cinch
robonerd has quit [Max SendQ exceeded]
robonerd has joined #cinch
robonerd has joined #cinch
robonerd has quit [Changing host]
robonerd has quit [Max SendQ exceeded]
robonerd has joined #cinch
kludge` has quit [Ping timeout: 252 seconds]
kludge` has joined #cinch
xeviox|afk is now known as xeviox
robonerd has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
space has joined #cinch
space has quit [Read error: Connection reset by peer]
Zackio has quit [Read error: Operation timed out]
Zackio has joined #cinch
Spami has joined #cinch
rickmasta has joined #cinch
DJ-Magic_Finn is now known as THE_Bearded_Drag
THE_Bearded_Drag is now known as THEBeardedDragon
Spami has quit [Quit: This computer has gone to sleep]
xeviox is now known as xeviox|afk
<somasonic> sorry if this is a silly question, but when using multiple matches, is there an easy way to ensure only one is executed per message?
<somasonic> match /request (\w+) (\S+) (\S+) (\d+)/, method: :request
<somasonic> match /request/, method: :help
<somasonic> is the specific code
<somasonic> i just want :help to be called if :request isnt matched
<somasonic> i really like cinch. delighted i found it
<dominikh> somasonic: there's a `group` option for matchers.
<dominikh> it's plugin-local; for all matchers in the same group, only the first matching one will execute
<dominikh> (oh and you want "request" instead of /request/. /request$/ would work, but that's what "" is for
<dominikh> (/request/ would, with the default suffix, match requestlol)
<dominikh> brb, dinner
<somasonic> that's helpful, thanks dominikh
<somasonic> I actually wanted the /request/ to be a regexp, so it'd match malformed commands
<dominikh> maybe /request / then
<somasonic> a lot of our users do not speak english and have a hard time with the bots
* somasonic nods
<dominikh> but that won't match argument less
<somasonic> /request/ is fine, we dont have any other bots anyway
<dominikh> so maybe /request( .*)?/
<dominikh> alright
<dominikh> anyway, really having dinner now
<somasonic> thanks
Spami has joined #cinch
robonerd has joined #cinch
robonerd has joined #cinch
robonerd has quit [Changing host]
<somasonic> is there any way I could append [$network] to the start of every log entry? i have 6 cinch instances on 6 networks in one ruby script and the log is not usable
<somasonic> i got as far as making my own logger class but stupidly can't think of how to get the network from within the logger class
<dominikh> you can copy the FormattedLogger's sources and add support for a prefix I suppose. loggers implement a certain interface, so you can write your own ones
<dominikh> ah, well, easiest is to give it to the logger explicitly
<somasonic> that makes sense
<somasonic> i'll do that
<dominikh> especially thanks to poor design choices when loggers were implemented :P
<somasonic> dominikh, does this look sensible?
<Cinchy> [pastie] #8480951 - Pastie (at pastie.org, on 2013-11-15 01:06)
<dominikh> somasonic: looks fine
<somasonic> :)
<somasonic> yeah that works great
<dominikh> :)
<somasonic> [2013/11/14 21:17:34.094] II [alphachat] Detected network: alphachat
<somasonic> where is that stored?
<somasonic> (alphachat)
<dominikh> IRC#network
<dominikh> it's based on detection of the IRCd and what the network calls itself (which not all of them do)
* somasonic nods
<dominikh> and it's only available after it's detected, so not exactly fit for use in the logger ;)
<somasonic> no, but it does seem fit for use for something else I need
<dominikh> ah, cool
<somasonic> I run a bnc service, we have channels on 4 networks but only one admin channel
<somasonic> so in the admin channel we need to know what network requests were made on
<somasonic> :P
<dominikh> ah, okay
<dominikh> well, as long as they all report their network name correctly
space has joined #cinch