#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)
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");
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)
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;