NOTE_VIS_PRIVILEGED
};
-struct io_fd *socket_io_fd;
+extern struct io_fd *socket_io_fd;
extern struct cManagerNode cManager;
struct note_type
struct userData *actee;
struct userData *actor, *real_actor;
struct handle_info *handle = NULL;
- struct adduserPending *tmp;
+ //struct adduserPending *tmp;
unsigned short access_level, override = 0;
REQUIRE_PARAMS(3);
else {
if(IsInChannel(channel, unode)) {
reply("CSMSG_ADDUSER_PENDING", unode->nick);
- tmp = add_adduser_pending(channel, unode, access_level);
+ add_adduser_pending(channel, unode, access_level);
send_message_type(1,unode, chanserv, "CSMSG_ADDUSER_PENDING_TARGET", user->nick, channel->name);
}
/* this results in user must auth AND not in chan errors. too confusing..
static CHANSERV_FUNC(cmd_invite)
{
- struct userData *uData;
+ //struct userData *uData;
struct userNode *invite;
- uData = GetChannelUser(channel->channel_info, user->handle_info);
+ //uData = GetChannelUser(channel->channel_info, user->handle_info);
if(argc > 1)
{
/* service ignore */
else if (!strcasecmp(wheel, "svsignore"))
{
- int gagged;
+ //int gagged;
int ignoretime = 0;
char target[HOSTLEN + 13];
strcat(target, user->hostname);
ignoretime = now + (1 + rand() % 120);
- gagged = gag_create(target, "wheelofabuse", "Reward for spinning the wheel of misfortune!", ignoretime);
+ gag_create(target, "wheelofabuse", "Reward for spinning the wheel of misfortune!", ignoretime);
}
/* kick and ban from each channel your in */
else if (!strcasecmp(wheel, "kickbanall"))
char ballcolors[50][50] = {
"blue", "red", "green", "yellow",
"white", "black", "grey", "brown",
- "yellow", "pink", "purple", "orange", "teal", "burgandy",
+ "yellow", "pink", "purple", "orange", "teal", "burgundy",
"fuchsia","turquoise","magenta", "cyan"};
#define NUMOFLOCATIONS 50
char balllocations[50][55] = {
/*** COLOR *****/
if((word2) && strcasecmp(word1, "what") == 0 && ((strcasecmp(word2, "color") == 0) || (strcasecmp(word2, "colour") == 0)))
eightball(eb, 1, accum);
- else if((word3) && strcasecmp(word1, "what's") == 0 && strcasecmp(word2, "the") == 0 && ((strcasecmp(word2, "color") == 0) || (strcasecmp(word2, "colour") == 0)))
+ else if((word3) && strcasecmp(word1, "what's") == 0 && strcasecmp(word2, "the") == 0 && ((strcasecmp(word3, "color") == 0) || (strcasecmp(word3, "colour") == 0)))
eightball(eb, 1, accum);
- else if((word3) && strcasecmp(word1, "whats") == 0 && strcasecmp(word2, "the") == 0 && ((strcasecmp(word2, "color") == 0) || (strcasecmp(word2, "colour") == 0)))
+ else if((word3) && strcasecmp(word1, "whats") == 0 && strcasecmp(word2, "the") == 0 && ((strcasecmp(word3, "color") == 0) || (strcasecmp(word3, "colour") == 0)))
eightball(eb, 1, accum);
/*** LOCATION *****/
else if(
else if((change->args[ii].mode & (MODE_REMOVE | MODE_BAN)) == MODE_BAN)
{
const char *ban = change->args[ii].u.hostmask;
- if(!bad_channel_ban(channel, user, ban, NULL, NULL))
+ if(bad_channel_ban(channel, user, ban, NULL, NULL) != 1)
continue;
if(!bounce)
bounce = mod_chanmode_alloc(change->argc + 1 - ii);
static void
ban_read_helper(const char *key, struct record_data *rd, struct chanData *chan)
{
- struct banData *bData;
+ //struct banData *bData;
char *set, *triggered, *s_duration, *s_expires, *reason, *owner;
time_t set_time, triggered_time, expires_time;
if(!reason || (expires_time && (expires_time < now)))
return;
- bData = add_channel_ban(chan, key, owner, set_time, triggered_time, expires_time, reason);
+ add_channel_ban(chan, key, owner, set_time, triggered_time, expires_time, reason);
}
static struct suspended *