comparison 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
comparison
equal deleted inserted replaced
4110:64d983d6b7bb 4111:ee884f1d7ae3
57 57
58 char username[64]; 58 char username[64];
59 char displayname[128]; 59 char displayname[128];
60 char password[32]; 60 char password[32];
61 guint keepalive; 61 guint keepalive;
62
62 /* stuff needed for per-connection idle times */ 63 /* stuff needed for per-connection idle times */
63 guint idle_timer; 64 guint idle_timer;
64 time_t login_time; 65 time_t login_time;
65 time_t lastsent; 66 time_t lastsent;
66 int is_idle; 67 int is_idle;
67 time_t correction_time; 68 time_t correction_time;
68 69
69 char *away; 70 char *away; /* set by protos, is NULL when not away, or set *
70 int is_auto_away; 71 * to "" or a custom message when away */
72 char *away_state; /* updated by serv_set_away, keeps the last set *
73 * away type */
74 int is_auto_away; /* used by idle.c */
71 75
72 int evil; 76 int evil; /* warning level for AIM (why is this here?) */
73 gboolean wants_to_die; /* defaults to FALSE */ 77 gboolean wants_to_die; /* defaults to FALSE */
74 }; 78 };
75 79
76 #define OPT_CONN_HTML 0x00000001 80 #define OPT_CONN_HTML 0x00000001
81 /* set this flag on a gc if you want serv_got_im to autoreply when away */
82 #define OPT_CONN_AUTO_RESP 0x00000002
77 83
78 struct proto_user_opt { 84 struct proto_user_opt {
79 char *label; 85 char *label;
80 char *def; 86 char *def;
81 int pos; 87 int pos;