From 38aeba702907464295001f84a2bfadf25e4d65d3 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sat, 23 May 2015 19:13:48 +0200 Subject: [PATCH] Link to the wiki in the !ping deprecation notice --- src/wolfgame.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index b9e5c05..1d79489 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -654,7 +654,7 @@ def pinger(cli, nick, chan, rest): if PING: var.LAST_PING = datetime.now() cli.msg(chan, msg) - cli.msg(chan, "\u0002Please note that {0}ping and the {0}away/{0}back system is deprecated in favor of {0}pingif and will be removed soon.\u0002 See \u0002{0}help pingif\u0002 for details.".format(botconfig.CMD_CHAR)) + cli.msg(chan, "\u0002Please note that {0}ping and the {0}away/{0}back system is deprecated in favor of {0}pingif and will be removed soon.\u0002 See https://github.com/lykoss/lykos/wiki/Pingif for details.".format(botconfig.CMD_CHAR)) minimum = datetime.now() + timedelta(seconds=var.PING_MIN_WAIT) if not var.CAN_START_TIME or var.CAN_START_TIME < minimum: @@ -782,10 +782,10 @@ def away(cli, nick, chan, rest): nick, _, _, cloak = parse_nick(nick) prefix = botconfig.CMD_CHAR if chan == nick: - pm(cli, nick, "\u0002Please note that {0}ping and the {0}away/{0}back system is deprecated in favor of {0}pingif and will be removed soon.\u0002 See \u0002{0}help pingif\u0002 for details.".format(botconfig.CMD_CHAR)) - else: - cli.notice(nick, "\u0002Please note that {0}ping and the {0}away/{0}back system is deprecated in favor of {0}pingif and will be removed soon.\u0002 See \u0002{0}help pingif\u0002 for details.".format(botconfig.CMD_CHAR)) + pm(cli, nick, "\u0002Please note that {0}ping and the {0}away/{0}back system is deprecated in favor of {0}pingif and will be removed soon.\u0002 See https://github.com/lykoss/lykos/wiki/Pingif for details.".format(botconfig.CMD_CHAR)) + else: + cli.notice(nick, "\u0002Please note that {0}ping and the {0}away/{0}back system is deprecated in favor of {0}pingif and will be removed soon.\u0002 See https://github.com/lykoss/lykos/wiki/Pingif for details.".format(botconfig.CMD_CHAR)) if var.OPT_IN_PING: if not rest: # don't want to trigger on unrelated messages cli.notice(nick, "Please use {0}in and {0}out to opt in or out of the ping list.".format(botconfig.CMD_CHAR)) @@ -828,9 +828,9 @@ def back_from_away(cli, nick, chan, rest): nick, _, _, cloak = parse_nick(nick) prefix = botconfig.CMD_CHAR if chan == nick: - pm(cli, nick, "\u0002Please note that {0}ping and the {0}away/{0}back system is deprecated in favor of {0}pingif and will be removed soon.\u0002 See \u0002{0}help pingif\u0002 for details.".format(botconfig.CMD_CHAR)) + pm(cli, nick, "\u0002Please note that {0}ping and the {0}away/{0}back system is deprecated in favor of {0}pingif and will be removed soon.\u0002 See https://github.com/lykoss/lykos/wiki/Pingif for details.".format(botconfig.CMD_CHAR)) else: - cli.notice(nick, "\u0002Please note that {0}ping and the {0}away/{0}back system is deprecated in favor of {0}pingif and will be removed soon.\u0002 See \u0002{0}help pingif\u0002 for details.".format(botconfig.CMD_CHAR)) + cli.notice(nick, "\u0002Please note that {0}ping and the {0}away/{0}back system is deprecated in favor of {0}pingif and will be removed soon.\u0002 See https://github.com/lykoss/lykos/wiki/Pingif for details.".format(botconfig.CMD_CHAR)) if var.OPT_IN_PING: if not rest: cli.notice(nick, "Please use {0}in and {0}out to opt in or out of the ping list.".format(botconfig.CMD_CHAR)) @@ -1370,7 +1370,7 @@ def join_player(cli, player, chan, who = None, forced = False): def kill_join(cli, chan): pl = var.list_players() pl.sort(key=lambda x: x.lower()) - msg = "PING! " + var.break_long_message(pl, ", ").replace("\n", "\nPING! ") + msg = "PING! " + var.break_long_message(pl).replace("\n", "\nPING! ") reset_modes_timers(cli) reset() cli.msg(chan, msg)