robotmay has quit [Remote host closed the connection]
heik0 has quit [Quit: heik0]
aytch has quit [Remote host closed the connection]
lledet has joined #cinch
lledet has quit [Quit: lledet]
qo is now known as qb
Necrs1mia84 has joined #cinch
Necrs1mia84 has left #cinch [#cinch]
jsilver has joined #cinch
jsilver has quit [Quit: Leaving...]
robotmay has joined #cinch
robotmay has quit [Remote host closed the connection]
heiko has joined #cinch
Dann1 has joined #cinch
Dann1 has quit [Remote host closed the connection]
Dann1 has joined #cinch
heiko has quit [Remote host closed the connection]
heiko has joined #cinch
clj_newb has joined #cinch
<clj_newb>
Hi, is there a way for a bot that has lost connection?
<clj_newb>
The :disconnect event is emitted when lost connection to the irc server or networking connection at all?
<clj_newb>
is emitted by the server or cinch?
<dominikh>
:disconnect is fired in all cases for which Cinch knows that the connection has gone. that is if the bot is quitting, or getting kill'd, or the connection died
<clj_newb>
thanks dominikh
<dominikh>
:)
<clj_newb>
I've been playing with it, but I bet I didn't get how to catch the event and execute a function. My try was listen_to :disconnect in the plugin and defined a function called disconnect
<clj_newb>
I'll search for an example on internet, thanks!
<dominikh>
clj_newb: either `listen_to :disconnect, method: :some_method; def some_method(m)...` or, if you don't explicitly state the method name, the default method it tries to call is called "listen"
<clj_newb>
thank very much
Dann1 has quit [Quit: Dann1]
postmodern has quit [Quit: Leaving]
lledet has joined #cinch
lledet has quit [Quit: lledet]
aytch has joined #cinch
aytch has quit [Remote host closed the connection]
aytch_ has joined #cinch
jsilver has joined #cinch
Dann1 has joined #cinch
Dann1 has quit [Read error: Connection reset by peer]
Dann1 has joined #cinch
<Dann1>
How do I check what type of message I get?
<Dann1>
If it is CTCP, part, quit, join or MOTD
<dominikh>
you can check Message#events and Message#command
jsilver has quit [Remote host closed the connection]