00:58
three0three has quit [Read error: Connection reset by peer]
02:59
postmodern has joined #cinch
07:36
aytch has quit [Remote host closed the connection]
07:37
aytch has joined #cinch
07:41
gry_ has quit [Ping timeout: 260 seconds]
07:42
gry_ has joined #cinch
07:42
aytch has quit [Ping timeout: 264 seconds]
07:45
heiko has joined #cinch
08:12
jhaals_ has joined #cinch
08:35
heiko has quit [Quit: heiko]
09:21
robotmay has joined #cinch
09:28
heiko has joined #cinch
10:50
heiko has quit [Quit: heiko]
11:51
rikai has quit [Read error: Connection reset by peer]
12:02
postmodern has quit [Quit: Leaving]
12:05
rikai has joined #cinch
13:04
aytch has joined #cinch
13:06
flexd has quit [Quit: WeeChat 0.3.6]
13:07
flexd has joined #cinch
13:17
literal has quit [Remote host closed the connection]
15:01
kith has joined #cinch
15:04
kith_ has quit [Ping timeout: 252 seconds]
15:09
caitlinface is now known as nullexception
15:10
nullexception is now known as caitlinface
15:18
kith has quit [Read error: Connection reset by peer]
15:18
kith_ has joined #cinch
16:59
qo has joined #cinch
16:59
qb has quit [Read error: Connection reset by peer]
17:07
jhaals_ has quit [Ping timeout: 260 seconds]
17:52
literal has joined #cinch
17:54
robotmay has quit [Remote host closed the connection]
18:41
Dann1 has joined #cinch
18:59
literal has quit [Quit: Lost terminal]
19:00
literal has joined #cinch
19:16
Dann1 has quit [Ping timeout: 248 seconds]
20:54
Dann1 has joined #cinch
20:56
postmodern has joined #cinch
20:56
<
Dann1 >
debug(m.channel)
20:56
<
Dann1 >
on :message, /.+/i do |m|
20:56
<
Dann1 >
m.channel does NOT return the message's current channel.
20:58
<
dominikh >
pretty sure it does :)
21:02
<
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
21:02
<
dominikh >
probably want debug(m.channel.inspect)
21:02
<
Dann1 >
Thanks dominik
21:04
<
Dann1 >
if my channel is #cinch,
21:04
<
Dann1 >
m.channel.inspect # => "#cinch",
21:04
<
dominikh >
no. that'd be m.channel.name
21:05
<
Dann1 >
Then my logger will need that :)
21:12
<
dominikh >
you want a, not w, and get rid of the reading
21:13
<
dominikh >
reading and rewriting the entire file is a rather stupid way of appending a line.
21:13
<
dominikh >
(and you'd need r+ for that)
21:13
<
Dann1 >
Something sounded really cheesy at the time
21:14
<
dominikh >
File.open("foo", "a") {|f| f.puts "new line"}
21:17
<
Dann1 >
And file closing on :disconnect is probably a good idea too.
21:17
<
Dann1 >
Again, thanks :)
21:46
brandon|work has joined #cinch
21:50
Dann1 has quit [K-Lined]
22:01
robotmay has joined #cinch
22:33
v0n has joined #cinch
22:33
<
v0n >
can we reload the bot config without shuting it down?
22:35
<
v0n >
like listen(m); bot.reload(); end
22:44
<
dominikh >
the configuration only? that'd be easy to write
22:45
<
dominikh >
`match "reload"; def execute(m); bot.config.load(YAML.read_file(...)); end` or something like that
22:45
<
dominikh >
if you actually want to load/unload/reload plugins, that is more advanced
22:47
<
waxjar >
i loved the idea of putting a bot behind a bouncer to keep it from disconnecting, instead of doing some funky reloading
23:35
v0n has quit [Ping timeout: 255 seconds]