Reintroduce !mystats
It's useful for things like "!m wolf", and it's easier to do this than hacking !pstats to support "!p wolf", which could be ambiguous if there's a player with an account name of "wolf".
This commit is contained in:
parent
60cd1ee06c
commit
c4fb449a77
@ -6621,6 +6621,18 @@ def player_stats(cli, nick, chan, rest):
|
||||
def player_stats_pm(cli, nick, rest):
|
||||
player_stats(cli, nick, nick, rest)
|
||||
|
||||
|
||||
@cmd("mystats", "me", "m")
|
||||
def my_stats(cli, nick, chan, rest):
|
||||
rest = rest.split()
|
||||
player_stats(cli, nick, chan, " ".join([nick] + rest))
|
||||
|
||||
|
||||
@pmcmd("mystats", "me", "m")
|
||||
def my_stats_pm(cli, nick, rest):
|
||||
my_stats(cli, nick, nick, rest)
|
||||
|
||||
|
||||
@cmd('game', raw_nick = True)
|
||||
def game(cli, nick, chan, rest):
|
||||
nick, _, __, cloak = parse_nick(nick)
|
||||
|
Loading…
x
Reference in New Issue
Block a user