From: Christian H. <ch...@us...> - 2002-12-21 19:33:57
|
Update of /cvsroot/gaim/gaim/src/protocols/zephyr In directory sc8-pr-cvs1:/tmp/cvs-serv4304/src/protocols/zephyr Modified Files: zephyr.c Log Message: <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 Index: zephyr.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/zephyr/zephyr.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- zephyr.c 3 Nov 2002 07:36:09 -0000 1.27 +++ zephyr.c 21 Dec 2002 19:33:54 -0000 1.28 @@ -843,12 +843,15 @@ static void zephyr_set_away(struct gaim_connection *gc, char *state, char *msg) { - if (gc->away) + if (gc->away) { g_free(gc->away); - gc->away = NULL; - if (!g_strcasecmp(state, "Hidden")) + gc->away = NULL; + } + + if (!g_strcasecmp(state, "Hidden")) { ZSetLocation(EXPOSE_OPSTAFF); - else if (!g_strcasecmp(state, "Online")) + gc->away = g_strdup(""); + } else if (!g_strcasecmp(state, "Online")) ZSetLocation(get_exposure_level()); else /* state is GAIM_AWAY_CUSTOM */ if (msg) gc->away = g_strdup(msg); |