Changes in protocols/oscar/oscar.c [545d7c0:5469952]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r545d7c0 r5469952 373 373 set_t *s; 374 374 375 s = set_add( &acc->set, "server", AIM_DEFAULT_LOGIN_SERVER, set_eval_account, acc ); 376 s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY; 377 375 378 if (isdigit(acc->user[0])) { 376 set_add(&acc->set, "ignore_auth_requests", "false", set_eval_bool, acc); 377 } 378 379 s = set_add(&acc->set, "server", AIM_DEFAULT_LOGIN_SERVER, set_eval_account, acc); 380 s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY; 381 382 if(isdigit(acc->user[0])) { 383 s = set_add(&acc->set, "web_aware", "false", set_eval_bool, acc); 379 s = set_add( &acc->set, "web_aware", "false", set_eval_bool, acc ); 384 380 s->flags |= ACC_SET_OFFLINE_ONLY; 385 381 } 386 387 acc->flags |= ACC_FLAG_AWAY_MESSAGE;388 382 } 389 383 … … 1216 1210 */ 1217 1211 static void gaim_icq_authask(struct im_connection *ic, guint32 uin, char *msg) { 1218 struct icq_auth *data ;1212 struct icq_auth *data = g_new(struct icq_auth, 1); 1219 1213 char *reason = NULL; 1220 1214 char *dialog_msg; 1221 1222 if (set_getbool(&ic->acc->set, "ignore_auth_requests")) 1223 return; 1224 1225 data = g_new(struct icq_auth, 1); 1226 1215 1227 1216 if (strlen(msg) > 6) 1228 1217 reason = msg + 6; … … 1963 1952 static void oscar_set_away_aim(struct im_connection *ic, struct oscar_data *od, const char *state, const char *message) 1964 1953 { 1965 if (state == NULL)1966 state = "";1967 1954 1968 1955 if (!g_strcasecmp(state, _("Visible"))) { … … 1972 1959 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_INVISIBLE); 1973 1960 return; 1974 } else if (message == NULL) { 1975 message = state; 1976 } 1961 } /* else... */ 1977 1962 1978 1963 if (od->rights.maxawaymsglen == 0) … … 2017 2002 } 2018 2003 2019 if ( state == NULL) {2004 if (!g_strcasecmp(state, "Online")) { 2020 2005 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_NORMAL); 2021 2006 } else if (!g_strcasecmp(state, "Away")) { … … 2042 2027 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_INVISIBLE); 2043 2028 ic->away = g_strdup(msg); 2044 } else {2029 } else if (!g_strcasecmp(state, GAIM_AWAY_CUSTOM)) { 2045 2030 if (no_message) { 2046 2031 aim_setextstatus(od->sess, od->conn, AIM_ICQ_STATE_NORMAL); … … 2291 2276 { 2292 2277 struct oscar_data *od = ic->proto_data; 2293 2294 if (od->icq) { 2295 static GList *m = NULL; 2296 m = g_list_append(m, "Away"); 2297 m = g_list_append(m, "Do Not Disturb"); 2298 m = g_list_append(m, "Not Available"); 2299 m = g_list_append(m, "Occupied"); 2300 m = g_list_append(m, "Free For Chat"); 2301 m = g_list_append(m, "Invisible"); 2302 return m; 2303 } else { 2304 static GList *m = NULL; 2305 m = g_list_append(m, "Away"); 2306 return m; 2307 } 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; 2308 2292 } 2309 2293
Note: See TracChangeset
for help on using the changeset viewer.