From 1707a3b7a3be9c8898ac79664afd245247d1227f Mon Sep 17 00:00:00 2001 From: pk910 Date: Sat, 13 Aug 2011 00:38:25 +0200 Subject: [PATCH] fixed last commit #2 --- modcmd.c | 2 +- modcmd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modcmd.c b/modcmd.c index bd39a47..cb56f08 100644 --- a/modcmd.c +++ b/modcmd.c @@ -24,7 +24,7 @@ static int get_binds_index(char first_char) { return 26; } -struct* ClientSocket get_prefered_bot(int botid) { +struct ClientSocket* get_prefered_bot(int botid) { struct ClientSocket *client, *source = NULL; for(client = getBots(SOCKET_FLAG_READY, NULL); client; client = getBots(SOCKET_FLAG_READY, client)) { if(client->botid == botid && (client->flags & SOCKET_FLAG_PREFERED)) diff --git a/modcmd.h b/modcmd.h index 673f74c..8dc866b 100644 --- a/modcmd.h +++ b/modcmd.h @@ -33,7 +33,7 @@ struct trigger_cache { }; void init_modcmd(); -struct* ClientSocket get_prefered_bot(int botid); +struct ClientSocket* get_prefered_bot(int botid); int register_command(int botid, char *name, cmd_bind_t *func); int set_trigger_callback(int botid, trigger_callback_t *func); int changeChannelTrigger(int botid, struct ChanNode *chan, char *new_trigger); -- 2.20.1