Browse Source

Fix join/part format parsing

dave/xdcc
dave 5 years ago
parent
commit
facfcbe3bc
  1. 3
      pyircbot/modules/Services.py

3
pyircbot/modules/Services.py

@ -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…
Cancel
Save