dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.10
Spami has joined #cinch
abolishme has quit [Read error: Connection reset by peer]
abolishme has joined #cinch
DeepBlue has quit [Read error: Connection reset by peer]
DeepBlue has joined #cinch
sindork has quit [Ping timeout: 272 seconds]
swingha has quit [Quit: WeeChat 0.4.2]
sindork has joined #cinch
robonerd has joined #cinch
robonerd has quit [Changing host]
robonerd has joined #cinch
DeepBlue has quit [Ping timeout: 245 seconds]
DeepBlue has joined #cinch
CM-Punk has joined #cinch
<CM-Punk>
Hello everyone.
kludge` has quit [Read error: Connection reset by peer]
DeepBlue has quit [Remote host closed the connection]
DeepBlue has joined #cinch
DeepBlue is now known as camelback
<camelback>
join freenode #kanaan for little tests
camelback is now known as DeepBlue
DeepBlue has quit [Ping timeout: 272 seconds]
DeepBlue has joined #cinch
DeepBlue has quit [Ping timeout: 272 seconds]
DeepBlue has joined #cinch
DeepBlue has quit [Excess Flood]
postmodern has quit [Quit: Leaving]
DeepBlue has joined #cinch
DeepBlue has quit [Ping timeout: 248 seconds]
swingha has joined #cinch
DeepBlue has joined #cinch
DeepBlue has quit [Quit: Konversation terminated!]
DeepBlue has joined #cinch
Rickmasta has quit [Quit: Leaving]
somasonic has quit [Quit: andrew]
somasonic has joined #cinch
Rickmasta has joined #cinch
DeepBlue has quit [Ping timeout: 246 seconds]
DeepBlue has joined #cinch
DeepBlue has quit [Ping timeout: 265 seconds]
kludge` has joined #cinch
<CM-Punk>
Okay if I have a line "match /Bot, how are you?/, :method => :hau" is there any way to edit that line so it recognizes the botname instead of hardcoding the bots name into the line?
<catepillar>
first, make sure you escape the ?, otherwise, it will match `Bot, how are yo` and `Bot, how are you`
<catepillar>
and give me a sec to look that up
<CM-Punk>
Alright
<catepillar>
looks like you could do it with `match /#{m.bot.nick}, how are you\?/, :method => :hau`
<catepillar>
i haven't tested that
<catepillar>
you might have to do something like `match { |m| /#{m.bot.nick}, how are you\?/}, :method => :hau`
<CM-Punk>
Okay
<CM-Punk>
I'll give it a shot
Spami has quit [Quit: This computer has gone to sleep]
v0n has quit [Quit: WeeChat 0.4.2]
v0n has joined #cinch
Dwarf_ has joined #cinch
Dwarf_ has quit [Ping timeout: 246 seconds]
<dominikh>
that there will not work, no.
<dominikh>
you will need a lambda for either the prefix or the matcher.
postmodern has joined #cinch
<CM-Punk>
Okay so dominikh
<CM-Punk>
I don't know what a lambda is (kinda a n00b)
<CM-Punk>
Well, I know what it is by definition..
<CM-Punk>
But I don't know the structure I should use as it pertains to this issue
<dominikh>
second thing catepillar said was actually correct, mostly.
<CM-Punk>
Okay...
<dominikh>
it'd be something like `match lambda {|m| /#{m.bot.nick}, how are you\?/}, :method => :hau`
Dwarf has quit [Ping timeout: 240 seconds]
Dwarf has joined #cinch
<catepillar>
ahh, yea
<catepillar>
that was my bad
<CM-Punk>
It works.
<CM-Punk>
Thanks guys.
Spami has joined #cinch
somasonic has left #cinch ["fin."]
_whitelogger_ has joined #cinch
Cinchy__ has joined #cinch
_whitelogger has quit [Read error: Connection reset by peer]
Cinchy_ has quit [Read error: Connection reset by peer]