Changes in protocols/oscar/oscar.c [68198e9:5469952]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r68198e9 r5469952 380 380 s->flags |= ACC_SET_OFFLINE_ONLY; 381 381 } 382 383 acc->flags |= ACC_FLAG_AWAY_MESSAGE;384 382 } 385 383 … … 1954 1952 static void oscar_set_away_aim(struct im_connection *ic, struct oscar_data *od, const char *state, const char *message) 1955 1953 { 1956 if (state == NULL)1957 state = "";1958 1954 1959 1955 if (!g_strcasecmp(state, _("Visible"))) { … … 1963 1959 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_INVISIBLE); 1964 1960 return; 1965 } else if (message == NULL) { 1966 message = state; 1967 } 1961 } /* else... */ 1968 1962 1969 1963 if (od->rights.maxawaymsglen == 0) … … 2008 2002 } 2009 2003 2010 if ( state == NULL) {2004 if (!g_strcasecmp(state, "Online")) { 2011 2005 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_NORMAL); 2012 2006 } else if (!g_strcasecmp(state, "Away")) { … … 2033 2027 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_INVISIBLE); 2034 2028 ic->away = g_strdup(msg); 2035 } else {2029 } else if (!g_strcasecmp(state, GAIM_AWAY_CUSTOM)) { 2036 2030 if (no_message) { 2037 2031 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_NORMAL); … … 2282 2276 { 2283 2277 struct oscar_data *od = ic->proto_data; 2284 2285 if (od->icq) { 2286 static GList *m = NULL; 2287 m = g_list_append(m, "Away"); 2288 m = g_list_append(m, "Do Not Disturb"); 2289 m = g_list_append(m, "Not Available"); 2290 m = g_list_append(m, "Occupied"); 2291 m = g_list_append(m, "Free For Chat"); 2292 m = g_list_append(m, "Invisible"); 2293 return m; 2294 } else { 2295 static GList *m = NULL; 2296 m = g_list_append(m, "Away"); 2297 return m; 2298 } 2278 GList *m = NULL; 2279 2280 if (!od->icq) 2281 return g_list_append(m, GAIM_AWAY_CUSTOM); 2282 2283 m = g_list_append(m, "Online"); 2284 m = g_list_append(m, "Away"); 2285 m = g_list_append(m, "Do Not Disturb"); 2286 m = g_list_append(m, "Not Available"); 2287 m = g_list_append(m, "Occupied"); 2288 m = g_list_append(m, "Free For Chat"); 2289 m = g_list_append(m, "Invisible"); 2290 2291 return m; 2299 2292 } 2300 2293
Note: See TracChangeset
for help on using the changeset viewer.