fixes for the last commits (buildable now)
[srvx.git] / src / chanserv.c
index 0e8aeee4d3f59abbd73d15092b10a0e7c0821879..e968d6338513c54263c0bc63ff6c9a938e6b2381 100644 (file)
@@ -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;