diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-02 16:22:57 +0200 | 
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-02 16:22:57 +0200 | 
| commit | 85d7b857fb8ca8e3c03d4abb3368a0966760630c (patch) | |
| tree | a16163e557bcae3af41bde7d2d771d64ca248a97 /irc.h | |
| parent | 875ad4201402b1a8f80ba22a6cdcdb152c6e5510 (diff) | |
| parent | dd345753c1742905c9f81aa71d8b09109fbc5456 (diff) | |
Merge trunk.
Diffstat (limited to 'irc.h')
| -rw-r--r-- | irc.h | 19 | 
1 files changed, 10 insertions, 9 deletions
| @@ -41,10 +41,10 @@  typedef enum  {  	USTATUS_OFFLINE = 0, -	USTATUS_AUTHORIZED, -	USTATUS_LOGGED_IN, -	USTATUS_IDENTIFIED, -	USTATUS_SHUTDOWN = -1 +	USTATUS_AUTHORIZED = 1, +	USTATUS_LOGGED_IN = 2, +	USTATUS_IDENTIFIED = 4, +	USTATUS_SHUTDOWN = 8  } irc_status_t;  typedef struct channel @@ -60,7 +60,7 @@ typedef struct irc  	int pinging;  	char *sendbuffer;  	char *readbuffer; -	int quit; +	GIConv iconv, oconv;  	int sentbytes;  	time_t oldtime; @@ -69,7 +69,9 @@ typedef struct irc  	char *user;  	char *host;  	char *realname; -	char *password; +	char *password; /* HACK: Used to save the user's password, but before +	                   logging in, this may contain a password we should +	                   send to identify after USER/NICK are received. */  	char umode[8]; @@ -89,17 +91,15 @@ typedef struct irc  	GHashTable *userhash;  	GHashTable *watches;  	struct __NICK *nicks; -	struct help *help;  	struct set *set; -	GIOChannel *io_channel;  	gint r_watch_source_id;  	gint w_watch_source_id;  	gint ping_source_id;  } irc_t;  #include "user.h" -#include "nick.h" +// #include "nick.h"  extern GSList *irc_connection_list; @@ -141,5 +141,6 @@ int irc_msgfrom( irc_t *irc, char *nick, char *msg );  int irc_noticefrom( irc_t *irc, char *nick, char *msg );  void buddy_send_handler( irc_t *irc, user_t *u, char *msg, int flags ); +struct groupchat *irc_chat_by_channel( irc_t *irc, char *channel );  #endif | 
