From 2379c7bc280fd75dc2976720815b19e93d47c8ac Mon Sep 17 00:00:00 2001
From: mcmlxxix <>
Date: Thu, 17 Jun 2010 16:27:04 +0000
Subject: [PATCH] fix bug in last commit

---
 exec/commservice.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/exec/commservice.js b/exec/commservice.js
index ca195365f5..8175122441 100644
--- a/exec/commservice.js
+++ b/exec/commservice.js
@@ -216,7 +216,7 @@ function queue(sock,data)
 			}
 			break;
 	}
-	if(modules[data.id] && modules[data.id].handler) {
+	if(!server_map[data.id] && modules[data.id] && modules[data.id].handler) {
 		modules[data.id].handler(data);
 	}
 }
@@ -536,6 +536,9 @@ function Server(addr,port)
 					queue(this.sock,data);
 					break;
 			}
+			if(modules[data.id] && modules[data.id].handler) {
+				modules[data.id].handler(data);
+			}
 		}
 	}
 	this.enqueue=function(data)
-- 
GitLab