Add another ping message

This commit is contained in:
nyuszika7h 2015-08-06 12:27:10 +02:00
parent b3c8fd562a
commit e27cb0c1e0

View File

@ -615,7 +615,7 @@ def restart_program(cli, nick, chan, rest):
@cmd("ping", pm=True) @cmd("ping", pm=True)
def pinger(cli, nick, chan, rest): def pinger(cli, nick, chan, rest):
"""Check if you or the bot is still connected.""" """Check if you or the bot is still connected."""
message = random.choice(var.PING_MESSAGES) message = random.choice(var.PING_MESSAGES).format(nick=nick)
if chan == nick: if chan == nick:
pm(cli, nick, message) pm(cli, nick, message)