<dominikh>
otherwise this: "!kb foo" will still trigger it.
<dominikh>
also probably needs to be User(query), not query
<sarkyniin>
oh, thanks
<dominikh>
not sure that's the reason
<Gizmokid2005>
^^ and be careful with that as you're not going to have a very effective ban in my testing either
sarkyniin has quit [Quit: Quitte]
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
rikai has quit [Ping timeout: 240 seconds]
rikai has joined #cinch
rikai has quit [Ping timeout: 240 seconds]
_BlizzyBot has quit [Read error: Connection reset by peer]
_Blizzy has quit [Ping timeout: 240 seconds]
frdmn has quit [Quit: ssssSSSSssss]
frdmn has joined #cinch
postmodern has quit [Quit: Leaving]
Rennex has quit [Ping timeout: 260 seconds]
Rennex has joined #cinch
tekk has quit [Ping timeout: 260 seconds]
kith_ has joined #cinch
kith has quit [Disconnected by services]
kith_ is now known as kith
tekk has joined #cinch
frdmn has quit [Quit: ssssSSSSssss]
frdmn has joined #cinch
frdmn has quit [Quit: ssssSSSSssss]
frdmn has joined #cinch
Zackio has quit [Ping timeout: 260 seconds]
Zackio has joined #cinch
Zackio has quit [Ping timeout: 260 seconds]
_Blizzy has joined #cinch
Zackio has joined #cinch
Zackio has quit [Ping timeout: 260 seconds]
Zackio has joined #cinch
<Gizmokid2005>
If I was going to create a memo plugin and want to check every message's user to see if they have a message pending, would "listen_to :message" be an appropriate place to start?
<dominikh>
there's a memo example that comes with Cinch.
<Gizmokid2005>
I see that, but it's not pluginized
<Gizmokid2005>
that's the only thing that I"m not sure of right now.
<dominikh>
there's not much difference between `on` and plugins. on handlers with regexps use match, on handlers without use listen_to
<Gizmokid2005>
that was my question :)
<Gizmokid2005>
glad I'm not completely dumb
iamayam has quit [Ping timeout: 240 seconds]
iamayam has joined #cinch
djbkd has joined #cinch
iamayam has quit [Ping timeout: 240 seconds]
iamayam has joined #cinch
<Gizmokid2005>
is there a way when doing a match in a plugin to tell what the match was on? ie - match /(?:msg|tell|ask) (.+?) (.+)/, method: :memo
<Gizmokid2005>
is there a way to tell if it was msg, tell or ask that triggered when in :memo?
<dominikh>
don't use ?: and look at the capture group?
<Gizmokid2005>
I recognize some of those words dominikh...I'm not entirely sure what you're suggesting though.
<dominikh>
… how do you tell what he said after msg/tell/ask?
<dominikh>
the (.+) part
<Gizmokid2005>
right
<dominikh>
so do the same thing for msg|tell|ask?
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
postmodern has joined #cinch
postmodern has joined #cinch
postmodern has quit [Changing host]
<onewheelskyward>
For instance, the function called for match /(msg|tell|ask) (.+)/ would have two add'l params: execute(cinch_msg_obj, msg_tell_ask, other_stuff)
djbkd has quit [Remote host closed the connection]
<Gizmokid2005>
I think that actually makes sense...
<onewheelskyward>
Ok. Give it a go. :)
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
leftylink is now known as leftylinkkkkkkkk
leftylinkkkkkkkk is now known as leftylink
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Ping timeout: 264 seconds]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
Edelwin has quit [Ping timeout: 245 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]
djbkd has joined #cinch
djbkd has quit [Remote host closed the connection]