set nick to '<nickname>|' when we get a nickname-in-use error (line_handler.py)

This commit is contained in:
jesopo 2019-02-12 20:40:40 +00:00
parent 2e925a6853
commit 1f1a19b5b6

View file

@ -697,7 +697,8 @@ class Module(ModuleManager.BaseModule):
# nickname already in use
@utils.hook("raw.received.433", default_event=True)
def handle_433(self, event):
pass
new_nick = "%s|" % event["server"].connection_params.nickname
event["server"].send_nick(new_nick)
# we need a registered nickname for this channel
@utils.hook("raw.received.477", default_event=True)