dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.3.1
Azure has quit [Ping timeout: 250 seconds]
Azure has joined #cinch
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rickmasta has joined #cinch
Azure has quit [Remote host closed the connection]
moeSizlak has joined #cinch
<
moeSizlak>
how do i get the bot's own nick
<
Gizmokid2005>
moeSizlak: bot.nick
<
moeSizlak>
thanks Gizmokid2005, but the bot variable isnt in scope in a plugin is it
<
Gizmokid2005>
should be moeSizlak
<
dominikh>
m.bot or @bot
<
dominikh>
either works
<
moeSizlak>
yes indeed. thank you sirs
moeSizlak has left #cinch ["Leaving"]
Azure has joined #cinch
moeSizlak has joined #cinch
<
moeSizlak>
why does this work
<
moeSizlak>
match lambda {|m| /#{m.bot.nick}, how are you\?/}, :method => :hi
<
moeSizlak>
but not this
<
moeSizlak>
match /#{bot.nick}, how are you \?/, :method => :hi
<
leftylink>
hmm, two questions, 1) is bot defined in that scope? 2) if the bot's nick changes, the regex doesn't change
<
leftylink>
the second isn't really a question
<
moeSizlak>
yes the bots name changes
<
moeSizlak>
and apparently the bot is not defined in that scope
<
moeSizlak>
its in a plugin
<
moeSizlak>
ie, the match... line is right at the top of the plugin
<
leftylink>
guess that answers why it doesn't work then
<
leftylink>
if bot isn't defined there
<
moeSizlak>
why isnt it
<
moeSizlak>
its in a plugin
Azure has quit [Ping timeout: 265 seconds]