dominikh changed the topic of #cinch to: The IRC Framework | http://groups.google.com/group/cinch-ruby/ | Latest version: Cinch 2.0.3 – Change log at http://bit.ly/Oqu9Eu – Migration guide at http://bit.ly/GO4qkW | This channel is being publicly logged at http://irclog.whitequark.org/cinch/
three0three has quit [Read error: Connection reset by peer]
postmodern has joined #cinch
aytch has quit [Remote host closed the connection]
aytch has joined #cinch
gry_ has quit [Ping timeout: 260 seconds]
gry_ has joined #cinch
aytch has quit [Ping timeout: 264 seconds]
heiko has joined #cinch
jhaals_ has joined #cinch
heiko has quit [Quit: heiko]
robotmay has joined #cinch
heiko has joined #cinch
heiko has quit [Quit: heiko]
rikai has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
rikai has joined #cinch
aytch has joined #cinch
flexd has quit [Quit: WeeChat 0.3.6]
flexd has joined #cinch
literal has quit [Remote host closed the connection]
kith has joined #cinch
kith_ has quit [Ping timeout: 252 seconds]
caitlinface is now known as nullexception
nullexception is now known as caitlinface
kith has quit [Read error: Connection reset by peer]
kith_ has joined #cinch
qo has joined #cinch
qb has quit [Read error: Connection reset by peer]
jhaals_ has quit [Ping timeout: 260 seconds]
literal has joined #cinch
robotmay has quit [Remote host closed the connection]
Dann1 has joined #cinch
literal has quit [Quit: Lost terminal]
literal has joined #cinch
Dann1 has quit [Ping timeout: 248 seconds]
Dann1 has joined #cinch
postmodern has joined #cinch
<Dann1> Say I have
<Dann1> debug(m.channel)
<Dann1> end
<Dann1> on :message, /.+/i do |m|
<Dann1> m.channel does NOT return the message's current channel.
<Dann1> Halp?
<dominikh> pretty sure it does :)
<Dann1> :/
<Dann1> Odd
<Dann1> http://puu.sh/1NLy9 Can't get it
<dominikh> how do you infer from that that m.channel does not return the message's current channel? the issue is that debug expects a string, and what you give it isn't a string but a Channel object
<dominikh> probably want debug(m.channel.inspect)
<Dann1> Thanks dominik
<Dann1> if my channel is #cinch,
<Dann1> m.channel.inspect # => "#cinch",
<Dann1> right?
<dominikh> no. that'd be m.channel.name
<Dann1> Ah
<Dann1> Then my logger will need that :)
<Dann1> Damn IO
<dominikh> uhm
<dominikh> you want a, not w, and get rid of the reading
<dominikh> reading and rewriting the entire file is a rather stupid way of appending a line.
<dominikh> (and you'd need r+ for that)
<Dann1> Something sounded really cheesy at the time
<dominikh> File.open("foo", "a") {|f| f.puts "new line"}
<Dann1> And file closing on :disconnect is probably a good idea too.
<Dann1> Again, thanks :)
<dominikh> np
brandon|work has joined #cinch
Dann1 has quit [K-Lined]
robotmay has joined #cinch
v0n has joined #cinch
<v0n> hi
<v0n> can we reload the bot config without shuting it down?
<v0n> like listen(m); bot.reload(); end
<v0n> or something
<dominikh> the configuration only? that'd be easy to write
<dominikh> `match "reload"; def execute(m); bot.config.load(YAML.read_file(...)); end` or something like that
<dominikh> if you actually want to load/unload/reload plugins, that is more advanced
<waxjar> i loved the idea of putting a bot behind a bouncer to keep it from disconnecting, instead of doing some funky reloading
<v0n> thanks\
v0n has quit [Ping timeout: 255 seconds]