--- a/src/irc_conn.h Sun Mar 01 00:34:33 2009 +0200
+++ b/src/irc_conn.h Sun Mar 01 01:48:14 2009 +0200
@@ -9,6 +9,7 @@
#include "line_proto.h"
#include "irc_line.h"
#include "error.h"
+#include <stdbool.h>
/*
* A connection to an IRC server.
@@ -16,6 +17,9 @@
struct irc_conn {
/* We are a line-based protocol */
struct line_proto *lp;
+
+ /* Registered (as in, we have a working nickname)? */
+ bool registered;
};
// XXX: this should probably be slightly reworked
@@ -39,11 +43,6 @@
*/
err_t irc_conn_create (struct irc_conn **conn, struct sock_stream *sock, const struct irc_conn_config *config, struct error_info *err);
-/*
- * Send an IRC message directly
- */
-err_t irc_conn_send (struct irc_conn *conn, const struct irc_line *line);
-
/**
* @group Simple request functions
*
@@ -54,6 +53,11 @@
*/
/*
+ * Send a generic IRC message
+ */
+err_t irc_conn_send (struct irc_conn *conn, const struct irc_line *line);
+
+/*
* Send a NICK message
*/
err_t irc_conn_NICK (struct irc_conn *conn, const char *nickname);
@@ -68,4 +72,6 @@
*/
err_t irc_conn_PONG (struct irc_conn *conn, const char *target);
+// @}
+
#endif /* IRC_CONN_H */