From: pk910 Date: Fri, 12 Aug 2011 22:38:25 +0000 (+0200) Subject: fixed last commit #2 X-Git-Tag: v5.3~572 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=1707a3b7a3be9c8898ac79664afd245247d1227f;p=NeonServV5.git fixed last commit #2 --- 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);