[ekg2-commit] ekg2: commands.c (HEAD) session-en.txt (HEAD) session-pl.txt (HEAD) [peres]

CVS commit cvs w toxygen.net
Nie, 26 Sie 2007, 10:28:18 CEST


Module name:	ekg2
Changes by:	peres	2007-08-26 10:28:15

Modified files:
	commands.c session-en.txt session-pl.txt

Log message:
'auto_auth' upgrade. If 5th bit (16) set, then /add doesn't imply /auth -r
(i.e. we don't ask for auth when adding).

Index: commands.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/jabber/commands.c,v
diff -d -u -r1.194 -r1.195
--- commands.c	18 Aug 2007 08:29:17 -0000	1.194
+++ commands.c	26 Aug 2007 08:28:15 -0000	1.195
@@ -915,7 +915,8 @@
 	xfree(nickname);
 	if (addcom) {
 		xfree(u);
-		return command_exec_format(target, session, quiet, ("/auth --request %s"), uid);
+		return (session_int_get(session, "auto_auth") & 16 ? 0 :
+			command_exec_format(target, session, quiet, ("/auth --request %s"), uid));
 	}
 	return 0;
 }

Index: session-en.txt
===================================================================
RCS file: /home/cvs/ekg2/plugins/jabber/session-en.txt,v
diff -d -u -r1.8 -r1.9
--- session-en.txt	3 May 2007 20:07:57 -0000	1.8
+++ session-en.txt	26 Aug 2007 08:28:15 -0000	1.9
@@ -33,6 +33,8 @@
 		5 - ignore subscribe requests
 	
 		10 - ignore unsubscribe requests
+	
+		16 - when adding contacts, don't request auth
 
 display_notify
 	type: integer

Index: session-pl.txt
===================================================================
RCS file: /home/cvs/ekg2/plugins/jabber/session-pl.txt,v
diff -d -u -r1.9 -r1.10
--- session-pl.txt	3 May 2007 20:07:57 -0000	1.9
+++ session-pl.txt	26 Aug 2007 08:28:15 -0000	1.10
@@ -34,6 +34,8 @@
 		5 - (1+4) ignoruje żądania autoryzacji
 	
 		10 - (8+2) ignoruje żądania cofnięcia autoryzacji
+	
+		16 - przy dodawaniu kontaktów, nie wysyła prośby o autoryzację
 
 display_notify
 	typ: liczba


Więcej informacji o liście dyskusyjnej ekg2-commit