modified code to use IOHandler functions instead of own ones
[NeonServV5.git] / src / modules / DummyServ.mod / bot_DummyServ.c
index 1b078ec00d073569cb224cd1158fa6e68454415f..259e640bdb8d318404cf74ce15ac57e31fb325a9 100644 (file)
@@ -1,4 +1,4 @@
-/* bot_DummyServ.c - NeonServ v5.4
+/* bot_DummyServ.c - NeonServ v5.5
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -42,6 +42,8 @@
 #define BOTALIAS "DummyServ"
 
 static void dummyserv_bot_ready(struct ClientSocket *client) {
+    if(client->botid != BOTID)
+        return;
     MYSQL_RES *res;
     MYSQL_ROW row;
     
@@ -148,10 +150,6 @@ void init_DummyServ(int type) {
     set_trigger_callback(BOTID, module_id, dummyserv_trigger_callback);
 }
 
-void loop_DummyServ() {
-    
-}
-
 void free_DummyServ(int type) {
     unbind_allcmd(BOTID);
     if(type == MODSTATE_STARTSTOP) {