aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-08 16:02:29 +0100
committerGravatar jesopo2019-10-08 16:02:29 +0100
commit921e59e0f84d76135bd3b25f8af6aa3fd3dd0d00 (patch)
tree934917020b3e37f700a0b9e3df1d34cf20171d04 /modules
parentlook back in logs for URL when non is provided to !isup (diff)
signature
!isupraw -> !tcpup
Diffstat (limited to 'modules')
-rw-r--r--modules/isup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/isup.py b/modules/isup.py
index 3c52dc77..edf22b8b 100644
--- a/modules/isup.py
+++ b/modules/isup.py
@@ -28,11 +28,11 @@ class Module(ModuleManager.BaseModule):
event["stdout"].write("%s looks up to me (HTTP %d)" %
(url, response.code))
- @utils.hook("received.command.isupraw")
+ @utils.hook("received.command.tcpup")
@utils.kwarg("min_args", 1)
@utils.kwarg("help", "Check if a given hostname:port is up or not")
@utils.kwarg("usage", "<hostname>[:port]")
- def isupraw(self, event):
+ def tcpup(self, event):
hostname, _, port = event["args_split"][0].partition(":")
port = utils.parse.try_int(port or "80")
if port == None: