fix some !roles messages
This commit is contained in:
parent
0ec0c5d73d
commit
749310e564
@ -6529,10 +6529,10 @@ def listroles(cli, nick, chan, rest):
|
|||||||
if gamemode not in validgamemodes:
|
if gamemode not in validgamemodes:
|
||||||
matches = complete_match(rest[0], validgamemodes)
|
matches = complete_match(rest[0], validgamemodes)
|
||||||
if len(matches) > 1:
|
if len(matches) > 1:
|
||||||
reply(cli, nick, chan, nick + " " + messages["ambiguous_mode"].format(rest[0], ", ".join(matches)))
|
reply(cli, nick, chan, nick + ": " + messages["ambiguous_mode"].format(rest[0], ", ".join(matches)))
|
||||||
return
|
return
|
||||||
if len(matches) == 0:
|
if len(matches) == 0:
|
||||||
reply(cli, nick, chan, messages["invalid_mode"].format(rest[0]))
|
reply(cli, nick, chan, nick + ": " + messages["invalid_mode"].format(rest[0]))
|
||||||
return
|
return
|
||||||
gamemode = matches[0]
|
gamemode = matches[0]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user