Fix join/part format parsing
This commit is contained in:
parent
7ee6339340
commit
facfcbe3bc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user