diff options
| author | 2019-03-03 22:38:34 +0000 | |
|---|---|---|
| committer | 2019-03-03 22:38:34 +0000 | |
| commit | 7a3db82300c126ef3004899b98abd742b268a417 (patch) | |
| tree | cd405e2946b39d5baab19ddea165d3f7962758ea /modules/line_handler/core.py | |
| parent | Add COLOR_NEUTRAL, show repo/number/state colours in !ghissue (diff) | |
| signature | ||
Add IRCServer.has_capability and use it throughout line_handler
Diffstat (limited to 'modules/line_handler/core.py')
| -rw-r--r-- | modules/line_handler/core.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/line_handler/core.py b/modules/line_handler/core.py index 78a0c479..6ffc447f 100644 --- a/modules/line_handler/core.py +++ b/modules/line_handler/core.py @@ -29,8 +29,8 @@ def handle_005(events, event): isupport[key] = None event["server"].isupport.update(isupport) - if "NAMESX" in isupport and not "multi-prefix" in event[ - "server"].agreed_capabilities: + if "NAMESX" in isupport and not event["server"].has_capability( + "multi-prefix"): event["server"].send("PROTOCTL NAMESX") if "PREFIX" in isupport: |
