the bots need to get the right botid
authorpk910 <philipp@zoelle1.de>
Sat, 13 Aug 2011 01:13:49 +0000 (03:13 +0200)
committerpk910 <philipp@zoelle1.de>
Sat, 13 Aug 2011 01:13:49 +0000 (03:13 +0200)
bot_NeonServ.c

index 364549f7d5f997d94a01af9684747c7c0cdf77f4..a2158be4c9f264e10311bc7b8a9bd998cd6b0b63 100644 (file)
@@ -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);
 }