From fd248dc521952b6d2c0b8b4bf1bf5f10f51a3649 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 20 Nov 2022 19:07:44 +0100 Subject: [PATCH] Channel: Fix documentation, --exact cannot be combined --- plugins/Channel/plugin.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/plugins/Channel/plugin.py b/plugins/Channel/plugin.py index d6332f9d4..26ad62501 100644 --- a/plugins/Channel/plugin.py +++ b/plugins/Channel/plugin.py @@ -313,17 +313,15 @@ class Channel(callbacks.Plugin): @internationalizeDocstring def kban(self, irc, msg, args, channel, optlist, bannedNick, expiry, reason): - """[] [--{exact,nick,user,host}] [] [] + """[] [--{exact,nick,user,host,account}] [] [] If you have the #channel,op capability, this will kickban for as many seconds as you specify, or else (if you specify 0 seconds or don't specify a number of seconds) it will ban the person indefinitely. --exact bans only the exact hostmask; --nick bans just the nick; - --user bans just the user, and --host bans just the host. You can - combine these options as you choose. is a reason to give for - the kick. - is only necessary if the message isn't sent in the channel - itself. + --user bans just the user, and --host bans just the host + You can combine the --nick, --user, and --host options as you choose. + is only necessary if the message isn't sent in the channel itself. """ self._ban(irc, msg, args, channel, optlist, bannedNick, expiry, reason, True) @@ -343,9 +341,9 @@ class Channel(callbacks.Plugin): If you have the #channel,op capability, this will ban for as many seconds as you specify, otherwise (if you specify 0 seconds or don't specify a number of seconds) it will ban the person indefinitely. - --exact can be used to specify an exact hostmask. You can combine the - exact, nick, user, and host options as you choose. is only - necessary if the message isn't sent in the channel itself. + --exact can be used to specify an exact hostmask. + You can combine the --nick, --user, and --host options as you choose. + is only necessary if the message isn't sent in the channel itself. """ self._ban(irc, msg, args, channel, optlist, bannedNick, expiry, None, False)