diff options
| author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-09 21:01:05 +0000 |
|---|---|---|
| committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-09 21:01:05 +0000 |
| commit | d7d01bdc5c667a1fafd95241282b58e03b4caa5b (patch) | |
| tree | f1482d8734da609923c6d8af6bc8fcb0fc187534 /src/protocol/unreal32.c | |
| parent | d49b3a25fda5f597491e73640dd1e76babc240eb (diff) | |
Squashed commit: merge next (1.9.1) back to trunk.
SVN users, NOTE: THIS WILL NOT BUILD, NOR SHOULD YOU RUN IT YET.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1953 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/unreal32.c')
| -rw-r--r-- | src/protocol/unreal32.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/protocol/unreal32.c b/src/protocol/unreal32.c index d28df8c01..02721c09f 100644 --- a/src/protocol/unreal32.c +++ b/src/protocol/unreal32.c @@ -187,7 +187,6 @@ IRCDCAPAB myIrcdcap[] = { 0, /* VHOST */ CAPAB_SSJ3, /* SSJ3 */ CAPAB_NICK2, /* NICK2 */ - CAPAB_UMODE2, /* UMODE2 */ CAPAB_VL, /* VL */ CAPAB_TLKEXT, /* TLKEXT */ 0, /* DODKEY */ @@ -664,6 +663,11 @@ class UnrealIRCdProto : public IRCDProto SendSQLine(nick, "Reserved for services"); } + bool CanKick(BotInfo *source, const char *chan, const char *user, const char *buf) + { + return !user->mode & MODE_q; + } + void SendKickInternal(BotInfo *source, const char *chan, const char *user, const char *buf) { if (buf) send_cmd(source->nick, "H %s %s :%s", chan, user, buf); @@ -1059,7 +1063,10 @@ int anope_event_umode2(const char *source, int ac, const char **av) if (ac < 1) return MOD_CONT; - do_umode2(source, ac, av); + const char *newav[4]; + newav[0] = source; + newav[1] = av[0]; + do_umode(source, ac, av); return MOD_CONT; } |
