@@ -136,6 +136,13 @@ didReceiveNamesForChannel: (OFString*)channel { of_log(@"Users in %@: %@", channel, [connection usersInChannel: channel]); } + +- (void)connectionWasClosed: (IRCConnection*)connection +{ + of_log(@"Disconnected!"); + + [OFApplication terminate]; +} @end