dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1 | You're being logged at https://irclog.whitequark.org/cinch/
leftylin1 is now known as leftylink
lemtzas is now known as Testing
Testing is now known as lemtzas
lemtzas is now known as lemtzas___
lemtzas___ is now known as testing___
testing___ is now known as lemtzas
lemtzas is now known as ramhog_
ramhog_ is now known as lemtzas
AndyWojo has joined #cinch
<AndyWojo> Hey, how do I access the text portion of the m variable?
<AndyWojo> on :message, /^[^*]*/ do |m, query|
<AndyWojo> Basically, I'm matching everything, and I want to access the text
<AndyWojo> m[@params] doesn't work
<leftylink> AndyWojo: m will be of type Message, so http://www.rubydoc.info/github/cinchrb/cinch/Cinch/Message#message-instance_method is what you want. alternatively you could put what you want into a capture group so that it will appear in the query variable, I think?
<AndyWojo> thanks!
<AndyWojo> yep