aboutsummaryrefslogtreecommitdiff
path: root/modules/line_handler/channel.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-03-03 22:38:34 +0000
committerGravatar jesopo2019-03-03 22:38:34 +0000
commit7a3db82300c126ef3004899b98abd742b268a417 (patch)
treecd405e2946b39d5baab19ddea165d3f7962758ea /modules/line_handler/channel.py
parentAdd COLOR_NEUTRAL, show repo/number/state colours in !ghissue (diff)
Add IRCServer.has_capability and use it throughout line_handler
Diffstat (limited to 'modules/line_handler/channel.py')
-rw-r--r--modules/line_handler/channel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/line_handler/channel.py b/modules/line_handler/channel.py
index a05cc2ff..487dcbd1 100644
--- a/modules/line_handler/channel.py
+++ b/modules/line_handler/channel.py
@@ -38,7 +38,7 @@ def handle_353(event):
modes.add(event["server"].prefix_symbols[nickname[0]])
nickname = nickname[1:]
- if "userhost-in-names" in event["server"].agreed_capabilities:
+ if event["server"].has_capability("userhost-in-names"):
hostmask = utils.irc.seperate_hostmask(nickname)
nickname = hostmask.nickname
user = event["server"].get_user(hostmask.nickname)