]> jfr.im git - irc/rizon/acid.git/commitdiff
Do not check the usercount before leaving LimitServ
authorOrillion <redacted>
Sat, 10 Mar 2018 14:00:09 +0000 (15:00 +0100)
committerOrillion <redacted>
Sun, 11 Mar 2018 10:03:52 +0000 (11:03 +0100)
pyva/pyva/src/main/python/limitserv/limitserv.py

index 8e56574090409aa9375c9cd94818ac7af8d2a9e7..72787eb87db1a1e79595f8c1d08d1ab766cd8405 100644 (file)
@@ -154,6 +154,11 @@ class limitserv(
                        self.msg(source, 'Invalid message. Say help for a list of valid messages.')
 
        def do_accept(self, nick, channel):
+               if self.auth.requests[nick].action == "remove" and self.auth.requests[nick].channel == channel:
+                       # Do not check user count when leaving
+                       inviteable.InviteablePseudoclient.do_accept(self, nick, channel)
+                       return;
+
                chan = Channel.findChannel(channel)
                if chan.size() < self.options.get('required_users', int, 20):
                        self.auth.reject_not_enough_users(nick, channel)