Mercurial > pidgin
diff src/multi.h @ 4111:ee884f1d7ae3
[gaim-migrate @ 4326]
<Robot101> adds a gc->flag called OPT_CONN_AUTO_RESP so that
gc->away can always store the away message even if
the prpl doesn't support autoresponding
<Robot101> makes all protos correctly free and set gc->away to
avoid leaks
<Robot101> stores the current away state in gc->away_state
whenever gc->away is non-NULL (ie it's not just a
plain on-line)
<Robot101> also minor change to Jabber to make Chatty an away
state, and to Gadu-Gadu to make some other thing an
away state too
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 21 Dec 2002 19:33:54 +0000 |
parents | 6b0cb60162f4 |
children | cc2f780c0505 |
line wrap: on
line diff
--- a/src/multi.h Sat Dec 21 05:37:45 2002 +0000 +++ b/src/multi.h Sat Dec 21 19:33:54 2002 +0000 @@ -59,6 +59,7 @@ char displayname[128]; char password[32]; guint keepalive; + /* stuff needed for per-connection idle times */ guint idle_timer; time_t login_time; @@ -66,14 +67,19 @@ int is_idle; time_t correction_time; - char *away; - int is_auto_away; + char *away; /* set by protos, is NULL when not away, or set * + * to "" or a custom message when away */ + char *away_state; /* updated by serv_set_away, keeps the last set * + * away type */ + int is_auto_away; /* used by idle.c */ - int evil; - gboolean wants_to_die; /* defaults to FALSE */ + int evil; /* warning level for AIM (why is this here?) */ + gboolean wants_to_die; /* defaults to FALSE */ }; #define OPT_CONN_HTML 0x00000001 +/* set this flag on a gc if you want serv_got_im to autoreply when away */ +#define OPT_CONN_AUTO_RESP 0x00000002 struct proto_user_opt { char *label;