X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/ca6a2ca1b21d37c0c80b52b48059f53f4d99c508..8bb77f82e9919ca57391e3ded0497418a3c6fe10:/src/chanserv.c diff --git a/src/chanserv.c b/src/chanserv.c index c7dcb96..5931cd0 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -679,7 +679,7 @@ enum note_visible_type NOTE_VIS_PRIVILEGED }; -struct io_fd *socket_io_fd; +extern struct io_fd *socket_io_fd; extern struct cManagerNode cManager; struct note_type @@ -8027,7 +8027,7 @@ void eightball(char *outcome, int method, unsigned int seed) 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] = { @@ -8933,7 +8933,7 @@ handle_mode(struct chanNode *channel, struct userNode *user, const struct mod_ch 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);