Actually have a random nick ONLY when our nick is RANDOM
This commit is contained in:
parent
5ff6e2a8c6
commit
48aa8d0bda
1 changed files with 3 additions and 2 deletions
|
@ -27,6 +27,7 @@ class Plugin(BasePlugin):
|
|||
|
||||
def change_nick_to_random(self, presence):
|
||||
to = presence["to"]
|
||||
if to.resource == 'RANDOM':
|
||||
to.resource = gen_nick(3)
|
||||
presence["to"] = to
|
||||
|
||||
|
|
Loading…
Reference in a new issue