X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fchanserv.c;h=e968d6338513c54263c0bc63ff6c9a938e6b2381;hb=678592d8efac54176fa5cb7d6e97bc37120145b6;hp=0e8aeee4d3f59abbd73d15092b10a0e7c0821879;hpb=331dba18bbfe61a91d885430e3a611510733d158;p=srvx.git diff --git a/src/chanserv.c b/src/chanserv.c index 0e8aeee..e968d63 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -713,6 +713,7 @@ static unsigned int userCount; #define GetChannelAccess(channel, handle) _GetChannelUser(channel, handle, 0, 0) #define GetTrueChannelAccess(channel, handle) _GetChannelUser(channel, handle, 0, 1) +static void unregister_channel(struct chanData *channel, const char *reason); unsigned short user_level_from_name(const char *name, unsigned short clamp_level) @@ -6621,7 +6622,7 @@ static CHANSERV_FUNC(cmd_vote) struct userData *target; struct handle_info *hi; unsigned int votedfor = 0; - char *votedfor_str; + char *votedfor_str = NULL; if (!cData || !cData->vote) { reply("CSMSG_NO_VOTE"); @@ -6726,6 +6727,7 @@ static CHANSERV_FUNC(cmd_startvote) irc_privmsg(cmd->parent->bot, channel->name, response); sprintf(response, user_find_message(user, "CSMSG_STARTVOTE_HOWTO")); //Todo irc_privmsg(cmd->parent->bot, channel->name, response); + return 1; } static CHANSERV_FUNC(cmd_endvote) @@ -7016,6 +7018,7 @@ handle_join(struct modeNode *mNode) struct handle_info *handle; unsigned int modes = 0, info = 0; char *greeting; + unsigned int i = 0; if(IsLocal(user) || !channel->channel_info || IsSuspended(channel->channel_info)) return 0;