[ekg2-commit] ekg2: commands.c (HEAD) [peres]

CVS commit cvs w toxygen.net
Wto, 1 Maj 2007, 16:13:01 CEST


Module name:	ekg2
Changes by:	peres	2007-05-01 16:12:58

Modified files:
	commands.c

Log message:
Enabling locking in plugins (unlocking is in PROTOCOL_DISCONNECTED):
- GG - we can have only one connection to one account,
- Jabber - we can have more than one connection, but they have to have
  different resources; we must assume the same session has the same resource,
- XMSG - we can have more than one connection, but it doesn't make any sense.
XXX: What about feed plugin?

Index: commands.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/gg/commands.c,v
diff -d -u -r1.108 -r1.109
--- commands.c	1 Apr 2007 15:44:00 -0000	1.108
+++ commands.c	1 May 2007 14:12:58 -0000	1.109
@@ -146,6 +146,8 @@
 					session_name(session));
 			return -1;
 		}
+		if (command_exec(NULL, session, "/session --lock", 0) == -1)
+			return -1;
 
 		if (local_ip == NULL)
 			gg_local_ip = htonl(INADDR_ANY);


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