trigger_callback_t *func;
struct trigger_callback *next;
-}
+};
static struct cmd_binding **cmd_binds;
static struct cmd_function *cmd_functions = NULL;
}
struct ClientSocket* get_prefered_bot(int botid) {
- struct ClientSocket *client, *source = NULL;
+ struct ClientSocket *client;
for(client = getBots(SOCKET_FLAG_READY, NULL); client; client = getBots(SOCKET_FLAG_READY, client)) {
if(client->botid == botid && (client->flags & SOCKET_FLAG_PREFERED))
return client;