src/protocols/zephyr/zephyr.c

changeset 4111
93b27900416e
parent 3867
0e747b4295cb
child 4227
5f98b16ed21c
equal deleted inserted replaced
4110:481c7ea9e258 4111:93b27900416e
841 return m; 841 return m;
842 } 842 }
843 843
844 static void zephyr_set_away(struct gaim_connection *gc, char *state, char *msg) 844 static void zephyr_set_away(struct gaim_connection *gc, char *state, char *msg)
845 { 845 {
846 if (gc->away) 846 if (gc->away) {
847 g_free(gc->away); 847 g_free(gc->away);
848 gc->away = NULL; 848 gc->away = NULL;
849 if (!g_strcasecmp(state, "Hidden")) 849 }
850
851 if (!g_strcasecmp(state, "Hidden")) {
850 ZSetLocation(EXPOSE_OPSTAFF); 852 ZSetLocation(EXPOSE_OPSTAFF);
851 else if (!g_strcasecmp(state, "Online")) 853 gc->away = g_strdup("");
854 } else if (!g_strcasecmp(state, "Online"))
852 ZSetLocation(get_exposure_level()); 855 ZSetLocation(get_exposure_level());
853 else /* state is GAIM_AWAY_CUSTOM */ if (msg) 856 else /* state is GAIM_AWAY_CUSTOM */ if (msg)
854 gc->away = g_strdup(msg); 857 gc->away = g_strdup(msg);
855 } 858 }
856 859

mercurial