Index: doc/user-guide/commands.xml
===================================================================
--- doc/user-guide/commands.xml (revision 0baed0da940c0d82280a5674d7fa8ad06d449384)
+++ doc/user-guide/commands.xml (revision 545d7c058d0604dd6acfa37c68e9867e72f25c2e)
@@ -587,4 +587,15 @@
+
+ true
+
+
+
+ Only supported by OSCAR so far, you can use this setting to ignore ICQ authorization requests, which are hardly used for legitimate (i.e. non-spam) reasons anymore.
+
+
+
+
+
true
Index: protocols/oscar/oscar.c
===================================================================
--- protocols/oscar/oscar.c (revision 0baed0da940c0d82280a5674d7fa8ad06d449384)
+++ protocols/oscar/oscar.c (revision 545d7c058d0604dd6acfa37c68e9867e72f25c2e)
@@ -373,9 +373,13 @@
set_t *s;
- s = set_add( &acc->set, "server", AIM_DEFAULT_LOGIN_SERVER, set_eval_account, acc );
+ if (isdigit(acc->user[0])) {
+ set_add(&acc->set, "ignore_auth_requests", "false", set_eval_bool, acc);
+ }
+
+ s = set_add(&acc->set, "server", AIM_DEFAULT_LOGIN_SERVER, set_eval_account, acc);
s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY;
- if (isdigit(acc->user[0])) {
- s = set_add( &acc->set, "web_aware", "false", set_eval_bool, acc );
+ if(isdigit(acc->user[0])) {
+ s = set_add(&acc->set, "web_aware", "false", set_eval_bool, acc);
s->flags |= ACC_SET_OFFLINE_ONLY;
}
@@ -1212,8 +1216,13 @@
*/
static void gaim_icq_authask(struct im_connection *ic, guint32 uin, char *msg) {
- struct icq_auth *data = g_new(struct icq_auth, 1);
+ struct icq_auth *data;
char *reason = NULL;
char *dialog_msg;
-
+
+ if (set_getbool(&ic->acc->set, "ignore_auth_requests"))
+ return;
+
+ data = g_new(struct icq_auth, 1);
+
if (strlen(msg) > 6)
reason = msg + 6;