From e3c5897f6f2a59a1459445771cbc8bb3c539c455 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Wed, 4 Nov 2015 12:26:29 -0500 Subject: [PATCH] add !deadchat help text, and change "chat" to "deadchat" because it confused people --- src/wolfgame.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index f4a9800..3aa62a8 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -1043,13 +1043,13 @@ def join_deadchat(cli, *all_nicks): return if len(nicks) == 1: - msg = "\u0002{0}\u0002 has joined the chat.".format(nicks[0]) + msg = "\u0002{0}\u0002 has joined the deadchat.".format(nicks[0]) elif len(nicks) == 2: - msg = "\u0002{0}\u0002 and \u0002{1}\u0002 have joined the chat.".format(*nicks) + msg = "\u0002{0}\u0002 and \u0002{1}\u0002 have joined the deadchat.".format(*nicks) else: - msg = "\u0002{0}\u0002, and \u0002{1}\u0002 have joined the chat.".format("\u0002, \u0002".join(nicks[:-1]), nicks[-1]) + msg = "\u0002{0}\u0002, and \u0002{1}\u0002 have joined the deadchat.".format("\u0002, \u0002".join(nicks[:-1]), nicks[-1]) mass_privmsg(cli, var.DEADCHAT_PLAYERS, msg) - mass_privmsg(cli, nicks, "You are now in the chat.") + mass_privmsg(cli, nicks, "You are now in the deadchat.") people = var.DEADCHAT_PLAYERS | set(nicks) @@ -1065,14 +1065,15 @@ def leave_deadchat(cli, nick, force=""): var.DEADCHAT_PLAYERS.remove(nick) if force: - pm(cli, nick, "You have been forcibly removed from the chat by \u0002{0}\u0002.".format(force)) - mass_privmsg(cli, var.DEADCHAT_PLAYERS, "\u0002{0}\u0002 has been removed from the chat by \u0002{1}\u0002.".format(nick, force)) + pm(cli, nick, "You have been forcibly removed from the deadchat by \u0002{0}\u0002.".format(force)) + mass_privmsg(cli, var.DEADCHAT_PLAYERS, "\u0002{0}\u0002 has been removed from the deadchat by \u0002{1}\u0002.".format(nick, force)) else: pm(cli, nick, "You have left the chat.") - mass_privmsg(cli, var.DEADCHAT_PLAYERS, "\u0002{0}\u0002 has left the chat.".format(nick)) + mass_privmsg(cli, var.DEADCHAT_PLAYERS, "\u0002{0}\u0002 has left the deadchat.".format(nick)) @cmd("deadchat", pm=True) def deadchat_pref(cli, nick, chan, rest): + """Toggles auto joining deadchat on death.""" if not var.ENABLE_DEADCHAT: return