diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-26 22:26:41 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-06-26 22:26:41 +0100 |
commit | 92c8d410eb1d26bfe876ae119734772f46c9a7da (patch) | |
tree | 190d75fe792453a01fcc8eca822ade7c5d7e5bf1 /irc.h | |
parent | 41d415beaa1fd3bdd67a12686fc35386e5b81108 (diff) |
Remember in which channel the user talked to someone and show responses in
that same channel.
Diffstat (limited to 'irc.h')
-rw-r--r-- | irc.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -65,7 +65,9 @@ typedef struct irc struct irc_user *root; struct irc_user *user; - char *last_root_cmd; + char *last_root_cmd; /* Either the nickname from which the last root + msg came, or the last channel root was talked + to. */ char *password; /* HACK: Used to save the user's password, but before logging in, this may contain a password we should @@ -79,7 +81,7 @@ typedef struct irc GSList *users, *channels; struct irc_channel *default_channel; GHashTable *nick_user_hash; - GHashTable *watches; + GHashTable *watches; /* See irc_cmd_watch() */ gint r_watch_source_id; gint w_watch_source_id; @@ -90,7 +92,7 @@ typedef struct irc typedef enum { - IRC_USER_PRIVATE = 1, + /* Replaced with iu->last_channel IRC_USER_PRIVATE = 1, */ IRC_USER_AWAY = 2, } irc_user_flags_t; @@ -107,6 +109,7 @@ typedef struct irc_user char *key; irc_user_flags_t flags; + struct irc_channel *last_channel; GString *pastebuf; /* Paste buffer (combine lines into a multiline msg). */ guint pastebuf_timer; |