Fix missing spaces in some event calls in line_handler.py

This commit is contained in:
jesopo 2018-11-27 13:16:19 +00:00
parent 7c4b2b6c4e
commit 08b4d94695

View file

@ -236,7 +236,7 @@ class Module(ModuleManager.BaseModule):
channel = event["server"].channels.add(channel_name)
if channel.name in event["server"].attempted_join:
del event["server"].attempted_join[channel.name]
self._event(event,"self.join", channel=channel,
self._event(event, "self.join", channel=channel,
server=event["server"], account=account, realname=realname)
channel.send_mode()
@ -255,7 +255,7 @@ class Module(ModuleManager.BaseModule):
if not len(user.channels):
event["server"].remove_user(user)
else:
self._event(event,"self.part", channel=channel, reason=reason,
self._event(event, "self.part", channel=channel, reason=reason,
server=event["server"])
event["server"].channels.remove(channel)
@ -346,7 +346,7 @@ class Module(ModuleManager.BaseModule):
old_nickname = event["server"].nickname
event["server"].set_own_nickname(new_nickname)
self._event(event,"self.nick", server=event["server"],
self._event(event, "self.nick", server=event["server"],
new_nickname=new_nickname, old_nickname=old_nickname)
# something's mode has changed
@ -378,7 +378,7 @@ class Module(ModuleManager.BaseModule):
remove = chunk[0] == "-"
for mode in chunk[1:]:
event["server"].change_own_mode(remove, mode)
self._event(event,"self.mode", modes=modes, server=event["server"])
self._event(event, "self.mode", modes=modes, server=event["server"])
# someone (maybe me!) has been invited somewhere
@utils.hook("raw.received.invite")
@ -631,7 +631,7 @@ class Module(ModuleManager.BaseModule):
self._event(event, "kick", channel=channel, reason=reason,
target_user=target_user, user=user, server=event["server"])
else:
self._event(event,"self.kick", channel=channel, reason=reason,
self._event(event, "self.kick", channel=channel, reason=reason,
user=user, server=event["server"])
# a channel has been renamed