From bdd161256d70bcc6f5fc8b41b065c5fbce2f470d Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 20 May 2019 16:33:32 +0100 Subject: `has_capability` -> `has_capability_str`, add new `has_capability` --- modules/line_handler/channel.py | 2 +- modules/line_handler/core.py | 2 +- modules/line_handler/message.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/line_handler') diff --git a/modules/line_handler/channel.py b/modules/line_handler/channel.py index 0f0858c6..5b877764 100644 --- a/modules/line_handler/channel.py +++ b/modules/line_handler/channel.py @@ -42,7 +42,7 @@ def handle_353(event): modes.add(event["server"].prefix_symbols[nickname[0]]) nickname = nickname[1:] - if event["server"].has_capability("userhost-in-names"): + if event["server"].has_capability_str("userhost-in-names"): hostmask = utils.irc.seperate_hostmask(nickname) nickname = hostmask.nickname user = event["server"].get_user(hostmask.nickname) diff --git a/modules/line_handler/core.py b/modules/line_handler/core.py index 676b9105..88544a08 100644 --- a/modules/line_handler/core.py +++ b/modules/line_handler/core.py @@ -29,7 +29,7 @@ def handle_005(events, event): isupport[key] = None event["server"].isupport.update(isupport) - if "NAMESX" in isupport and not event["server"].has_capability( + if "NAMESX" in isupport and not event["server"].has_capability_str( "multi-prefix"): event["server"].send("PROTOCTL NAMESX") diff --git a/modules/line_handler/message.py b/modules/line_handler/message.py index 38fb45fc..3e54e5b8 100644 --- a/modules/line_handler/message.py +++ b/modules/line_handler/message.py @@ -2,7 +2,7 @@ from src import utils def _from_self(server, direction, prefix): if direction == utils.Direction.Send: - if server.has_capability("echo-message"): + if server.has_capability_str("echo-message"): return None else: return True -- cgit v1.3.1-10-gc9f91