ChanServ changed the topic of #cinch to: The IRC Framework | http://groups.google.com/group/cinch-ruby/ | Latest version: Cinch 2.0.4 – Change log at http://bit.ly/14Q4s6Z – Migration guide at http://bit.ly/GO4qkW | This channel is being publicly logged at http://irclog.whitequark.org/cinch/
<Rennex> so, how do i check if a message is a privmsg to my bot?
<Rennex> there's Message#channel? but looks like if it's false, it can still be a ctcp message or whatever that "/msg version of /me" was called again
<Rennex> and i know those two are implemented as PRIVMSG on the irc level (as are public messages to channels), but that's not very interesting from a bot behavior perspective
<Mattx> Rennex, check :private
<Mattx> instead of :channel
<Rennex> Mattx: where would i use that? like "on :private"+
<Rennex> ?
<Rennex> currently i'm using "on :message", and i'm trying to make my bot only respond to public messages prefixed with the bot's current nick (or a shorter, predefined alias) and to private messages with no prefix
<Mattx> yep
<Mattx> on :private
<Mattx> and btw, ignore ChanServ and NickServ messages, they send you private messages too
<Rennex> ok. thanks
<dominikh> you can also use :message and then check if m.channel is nil or not, to differentiate between channel and private messages
<dominikh> if you want to handle both in the same routine
Guest96910 is now known as Spaceghost
Spaceghost has joined #cinch
Spaceghost has quit [Changing host]
waxjar has quit [Ping timeout: 260 seconds]
waxjar has joined #cinch
Mattx has quit [Read error: Connection reset by peer]
flexd has joined #cinch
v0n has joined #cinch
Lemtzas has quit [Ping timeout: 260 seconds]
Lemtzas has joined #cinch
Lemtzas has quit [Remote host closed the connection]
Lemtzas has joined #cinch
v0n has quit [Read error: Operation timed out]
tempestas has quit [Ping timeout: 256 seconds]
tempestas has joined #cinch
Lemtzas has quit [Ping timeout: 240 seconds]
Lemtzas has joined #cinch
<Azure> Finally, cinch-twitter 1.0.0 released.
<Azure> With v1.1 support.
* Azure should've done this months ago, but nope.
Lemtzas_ has joined #cinch
Lemtzas has quit [Ping timeout: 256 seconds]
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Remote host closed the connection]
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spaceghost has quit [Ping timeout: 268 seconds]
Spaceghost has joined #cinch
Spaceghost is now known as Guest1493
postmodern has quit [Quit: Leaving]
Spami has joined #cinch
waxjar has quit [Ping timeout: 260 seconds]
waxjar has joined #cinch
v0n has joined #cinch
waxjar has quit [Ping timeout: 260 seconds]
waxjar has joined #cinch
Guest1493 is now known as Spaceghost
Spaceghost has quit [Changing host]
Spaceghost has joined #cinch
<dominikh> heh
Spaceghost has quit [Read error: Connection reset by peer]
space_ has joined #cinch
space_ is now known as Spaceghost
Spaceghost has joined #cinch
Spaceghost has quit [Changing host]
Spami has quit [Quit: This computer has gone to sleep]
Spaceghost has quit [Read error: Connection reset by peer]
<nickrw> are there any worries with passing user input (from a matched pattern) to Channel#invite ?
<nickrw> I note that #invite just sticks the username straight into @bot.irc.send
<dominikh> I'd probably filter it through Cinch::Utilities::String.filter_string just to be sure and to remove any non-printable characters
jonahR has joined #cinch
<nickrw> is there a helper for that?
<nickrw> and if not, would you accept a patch?
<dominikh> it's Cinch::Utilities::String.filter_string ;)
space has joined #cinch
space is now known as Guest60046
Guest60046 is now known as Spaceghost
Spaceghost has joined #cinch
Spaceghost has quit [Changing host]
Spaceghost has quit [Read error: Connection reset by peer]
postmodern has joined #cinch
v0n has quit [Read error: Operation timed out]
space has joined #cinch
space is now known as Guest10865
Guest10865 is now known as Spaceghost
Spaceghost has quit [Changing host]
Spaceghost has joined #cinch