From 47339618f8820601a325a8318f14f3bb800f688d Mon Sep 17 00:00:00 2001 From: skizzerz Date: Thu, 8 Dec 2016 17:23:15 -0600 Subject: [PATCH] Remove part/fpart command There is no reason for this to be a command. It has no analogue outside of fsend, in which case you can just fsend a raw PART if needed as well. --- src/wolfgame.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 9023a38..5ebf496 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -6764,25 +6764,6 @@ def on_invite(cli, raw_nick, something, chan): cli.join(chan) # Allows the bot to be present in any channel debuglog(nick, "INVITE", chan, display=True) -@cmd("part", "fpart", raw_nick=True, flag="A", pm=True) -def fpart(cli, rnick, chan, rest): - """Makes the bot forcibly leave a channel.""" - nick = parse_nick(rnick)[0] - if nick == chan: - rest = rest.split() - if not rest: - pm(cli, nick, messages["fpart_usage"]) - return - if rest[0] == botconfig.CHANNEL: - pm(cli, nick, messages["fpart_bot_error"]) - return - chan = rest[0] - pm(cli, nick, "Leaving "+ chan) - if chan == botconfig.CHANNEL: - cli.notice(nick, messages["fpart_bot_error"]) - return - cli.part(chan) - @cmd("admins", "ops", pm=True) def show_admins(cli, nick, chan, rest): """Pings the admins that are available."""