From: pk910 Date: Sat, 13 Aug 2011 01:13:49 +0000 (+0200) Subject: the bots need to get the right botid X-Git-Tag: v5.3~559 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=5acd16337a9a7e29fab6e6f293d7a9a518389748;p=NeonServV5.git the bots need to get the right botid --- diff --git a/bot_NeonServ.c b/bot_NeonServ.c index 364549f..a2158be 100644 --- a/bot_NeonServ.c +++ b/bot_NeonServ.c @@ -41,6 +41,7 @@ static void start_bots() { user->flags |= USERFLAG_ISBOT; client = create_socket("127.0.0.1", 6667, "pktest:pktest123", user); //pktest Hostmask(s): *@127.0.0.1 client->flags |= SOCKET_FLAG_PREFERRED; + client->botid = BOTID; connect_socket(client); user = addUser("TestBot2"); @@ -48,6 +49,7 @@ static void start_bots() { strcpy(user->realname, "testUser!"); user->flags |= USERFLAG_ISBOT; client = create_socket("127.0.0.1", 6667, "pktest:pktest123", user); //pktest Hostmask(s): *@127.0.0.1 + client->botid = BOTID; connect_socket(client); }