[ekg2-commit] r3900 - trunk/plugins/jabber: trunk/plugins/jabber/commands.c

SVN commit svn w toxygen.net
Pią, 14 Mar 2008, 16:56:12 CET


Author: peres
Date: 2008-03-14 16:56:12 +0100 (Fri, 14 Mar 2008)
New Revision: 3900

Modified:
   trunk/plugins/jabber/commands.c
Log:

Fix & explain.



Modified: trunk/plugins/jabber/commands.c
===================================================================
--- trunk/plugins/jabber/commands.c	2008-03-14 10:49:46 UTC (rev 3899)
+++ trunk/plugins/jabber/commands.c	2008-03-14 15:56:12 UTC (rev 3900)
@@ -1552,8 +1552,13 @@
 					}
 					xfree(vname);
 				}
-				if (p) watch_write(j->send_watch, "</plugin>");
-				if (p && !l->next) { p = NULL; goto back; }
+				if (p) {
+					watch_write(j->send_watch, "</plugin>");
+					if (!p->next) { /* if last plugin, then jump back and write core vars */
+						p = NULL;
+						goto back;
+					}
+				}
 			}
 			for (l = sessions; l; l = l->next) {
 				session_t *s = l->data;



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