diff -r e6639132bead -r 9c1050bc8709 src/irc_conn.h --- a/src/irc_conn.h Tue Mar 10 01:46:09 2009 +0200 +++ b/src/irc_conn.h Tue Mar 10 02:34:11 2009 +0200 @@ -85,6 +85,13 @@ void *cb_arg, struct error_info *err); /** + * Destroy the irc_conn state, terminating any connection and releasing all resources. + * + * This does not end the session cleanly, and is intended mainly to be used after clean exit, or to clean up after errors. + */ +void irc_conn_destroy (struct irc_conn *conn); + +/** * Add a new chain of command handler callbacks to be used to handle irc_lines from the server. The given arg will be * passed to the callbacks as the context argument. The chain will be appended to the end of the current list of chains. *