X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/2f61d1d75ac52f239e760ecea02332eedc4682bd..d9d33535b1c4723eaad2f4a684706bfd4ba57641:/src/hash.c diff --git a/src/hash.c b/src/hash.c index dd35e06..ebf2d9a 100644 --- a/src/hash.c +++ b/src/hash.c @@ -3,7 +3,7 @@ * * This file is part of x3. * - * srvx is free software; you can redistribute it and/or modify + * x3 is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. @@ -607,11 +607,21 @@ DelChannelUser(struct userNode* user, struct chanNode* channel, const char *reas DelChannel(channel); } +static kick_func_t *kf_list; +static unsigned int kf_size = 0, kf_used = 0; + void KickChannelUser(struct userNode* target, struct chanNode* channel, struct userNode *kicker, const char *why) { + unsigned int n; + if (!target || !channel || IsService(target) || !GetUserMode(channel, target)) return; + + /* This may break things, but lets see.. -Rubin */ + for (n=0; n