dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.5
<elfurbe> Anyone have any protips on making cinch-calculate work? It does not seem to trigger on seeing .math, I'm not sure what the issue is.
<dominikh> would probably be easier to ask the developer of cinch-calculate :)
<dominikh> elfurbe: but considering that the plugin author never explicitly sets the prefix in his plugin, it should be !math, not .math
<elfurbe> Ha, yeah. That's it.
<elfurbe> Is that always set in the plugin or is there a global prefix that will default cinch to . instead of ! ?
<dominikh> elfurbe: you can set a global prefix (which defaults to !) and plugins can overwrite it with a local prefix
<dominikh> you can set the global one e.g. in your configure block, with something like c.plugins.prefix = "."
<elfurbe> Ah, rgr. I'll post an issue on his github. I'm sure if I was a more seasoned cinch developer that would've been obvious to me, but having just picked it up today, it'd be nice if his docs indicated that . is not the default command prefix.
<dominikh> I'm pretty sure he forgot that himself.
<dominikh> otherwise he'd either use ! in the docs or set it to .
v0n has quit [Ping timeout: 248 seconds]
rickmasta has joined #cinch
<elfurbe> Issue filed. Hopefully I'll save someone else some hairpulling. :D
<elfurbe> I actually had one other question about cinch-identify. I want to put my bot in a channel that requires a registered nick, but identify seems to trigger after channel joins are attempted. Is there a way to tell it to identify before joining?
<elfurbe> Yeah, I just found delay_joins
<dominikh> right
<dominikh> I think that's in the cinch-identify readme, isn't it?
<elfurbe> I do not believe so
<dominikh> hm okay, will check/edit later
<elfurbe> Thanks for your help, I appreciate it!
<dominikh> you're welcome
elfurbe has left #cinch [#cinch]
postmodern has quit [Quit: Leaving]
davidboy has joined #cinch
postmodern has joined #cinch
jonahR has joined #cinch
rickmasta has quit [Quit: Leaving...]
postmodern has quit [Quit: Leaving]
jonahR has quit [Quit: jonahR]
space has joined #cinch
space is now known as Guest2880
Spaceghost has quit [Ping timeout: 248 seconds]
postmodern has joined #cinch
postmodern has quit [Quit: Leaving]
rickmasta has joined #cinch
v0n has joined #cinch
Guest2880 is now known as Spaceghost
Spaceghost has quit [Changing host]
Spaceghost has joined #cinch
<Dwarf> Afternoon
<Dwarf> This may sound like a stupid question but how would I send a message to a different channel than the one the event triggered in?
<Dwarf> Nevermind, got it
v0n has quit [Ping timeout: 276 seconds]
txdv_ has quit [Read error: Operation timed out]
txdv has joined #cinch
<dominikh> :)
v0n has joined #cinch
jonahR has joined #cinch
elfurbe has joined #cinch
elfurbe has quit [Client Quit]
petru has joined #cinch
<petru> hello
<dominikh> Hi.
<petru> I'm giving cinch another try today, but I can't get a simple plug-in to work. I basically copy/pasted the code from the example plug-in
<dominikh> before we go any further: plugins have a default prefix of !
<dominikh> so e.g. the hello plugin triggers on !hello
* petru head->desk
<petru> Okay. That was easy :P
<dominikh> it happens somewhat often… it's a nice way to get people to join #cinch :P
<petru> Thanks. :)
v0n has quit [Ping timeout: 264 seconds]
<petru> Is that prefix changeable?
<dominikh> yes
<dominikh> on a per-match, per-plugin and per-bot basis
<dominikh> `match /.../, prefix: ...`, `set :prefix, ...` and `c.plugins.prefix = ...`
<dominikh> can be string, regexp or lambda. string will automatically get the ^ anchor, regexp will not, lambda is expected to return a string or regexp
<dominikh> there's also a suffix, which is empty by default
<petru> I see
<petru> I'm fairly new at ruby programming, but now that plug-ins work I'll have a shot at learning it the practical way
<dominikh> yay.
<dominikh> last time you gave up :P
<petru> yep :p
<petru> No way to reload code without restarting, right?
<dominikh> not in Cinch's core. there's a plugin that can do that, but it's somewhat involved and expects a certain file layout
<petru> Ok
v0n has joined #cinch
jonahR has quit [Ping timeout: 276 seconds]
v0n has quit [Ping timeout: 268 seconds]
<petru> dominikh, I have `match /greet (.*)/` in a plug-in. How could I use the text that matches this pattern in execute()?
<dominikh> Petru: every match group is one argument to the method
<dominikh> Petru: or do you want the entire message?
<petru> No, but I'd like to know that too:)
<dominikh> Message#message to get the entire message
<petru> So m.message
<dominikh> yeah
<petru> Match groups as arguments is awesome. I feared having to parse the whole message again :p
<dominikh> that'd be silly.
<petru> (it's what I did until now for non-plugin code)
<dominikh> hehe
<dominikh> (fwiw, the on-handlers behave the same. match groups are arguments to the block)
<petru> Yep, just figured that out too
<petru> dominikh, is there a way to send color and bold text to the server?
<waxjar> there's a Format method, iirc
<dominikh> yeah, look at the Format helper
<petru> hmm
<petru> I see
txdv has quit [Ping timeout: 248 seconds]
txdv has joined #cinch
rikai has quit [Read error: Connection reset by peer]
rikai has joined #cinch
postmodern has joined #cinch
v0n has joined #cinch
v0n has quit [Ping timeout: 264 seconds]
space has joined #cinch
space is now known as Guest43797
Spaceghost has quit [Ping timeout: 256 seconds]
petru is now known as Petru_
petru has joined #cinch
<petru> good night
Petru_ has quit [Quit: Leaving]