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