aboutsummaryrefslogtreecommitdiff
path: root/modules/admin.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-27 10:19:00 +0000
committerGravatar jesopo2019-10-27 10:19:00 +0000
commit8f4b5a0e70804f8f19f8b9032b7d93857cda40e8 (patch)
treec522c8a04f4173cfc104796dd5cf942f2c44a0fb /modules/admin.py
parentfallback ActivityPub data encoding to utf8 (diff)
signature
move IRCLine related code from utils.irc to IRCLine.py
Diffstat (limited to 'modules/admin.py')
-rw-r--r--modules/admin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/admin.py b/modules/admin.py
index 29c91720..76b6bb0c 100644
--- a/modules/admin.py
+++ b/modules/admin.py
@@ -1,7 +1,7 @@
#--depends-on commands
#--depends-on permissions
-from src import ModuleManager, utils
+from src import IRCLine, ModuleManager, utils
class Module(ModuleManager.BaseModule):
@utils.hook("received.command.nick", min_args=1)
@@ -148,7 +148,7 @@ class Module(ModuleManager.BaseModule):
raise utils.EventError("Please provide <hostname>:[+]<port>")
port = int(port)
- hostmask = utils.irc.parse_hostmask(event["args_split"][2])
+ hostmask = IRCLine.parse_hostmask(event["args_split"][2])
nickname = hostmask.nickname
username = hostmask.username or nickname
realname = nickname