Fix join/part format parsing

This commit is contained in:
dave 2018-01-16 17:05:19 -08:00
parent 7ee6339340
commit facfcbe3bc
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ class Services(ModuleBase):
@hook("JOIN", "PART")
def _joinpart(self, msg, cmd):
(self.current_channels.append if msg.command == "JOIN" else self.current_channels.remove)(msg.args[0])
channel = msg.args[0] if msg.command == "PART" else msg.trailing
(self.current_channels.append if msg.command == "JOIN" else self.current_channels.remove)(channel)
def nick(self):
return self.current_nick