//EVENTS
#include "event_neonserv_join.c"
#include "event_neonserv_part.c"
-#include "event_neonserv_quit.c"
#include "event_neonserv_kick.c"
#include "event_neonserv_mode.c"
#include "event_neonserv_ctcp.c"
}
static void neonserv_bot_ready(struct ClientSocket *client) {
+ if(client->botid != BOTID)
+ return;
MYSQL_RES *res;
MYSQL_ROW row;
client->flags |= (strcmp(row[6], "0") ? SOCKET_FLAG_PREFERRED : 0);
client->flags |= (strcmp(row[8], "0") ? SOCKET_FLAG_USE_QUEUE : 0);
client->flags |= (strcmp(row[9], "0") ? SOCKET_FLAG_SSL : 0);
- client->flags |= SOCKET_FLAG_REQUEST_INVITE;
+ client->flags |= SOCKET_FLAG_REQUEST_INVITE | SOCKET_FLAG_REQUEST_OP;
client->botid = BOTID;
client->clientid = atoi(row[7]);
connect_socket(client);
bind_bot_ready(neonserv_bot_ready, module_id);
bind_join(neonserv_event_join, module_id);
bind_part(neonserv_event_part, module_id);
- bind_quit(neonserv_event_quit, module_id);
bind_chanctcp(neonserv_event_chanctcp, module_id);
bind_privctcp(general_event_privctcp, module_id);
bind_channotice(neonserv_event_channotice, module_id);