diff options
| author | 2018-09-30 17:29:09 +0100 | |
|---|---|---|
| committer | 2018-09-30 17:29:09 +0100 | |
| commit | 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 (patch) | |
| tree | 4da29ff0462ca69820d81aa95afb4b261ab3213c /modules/geoip.py | |
| parent | received.command takes a final [command] part (diff) | |
| signature | ||
Switch to using docstring for usage, permission and require_mode
Diffstat (limited to 'modules/geoip.py')
| -rw-r--r-- | modules/geoip.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/geoip.py b/modules/geoip.py index f20df6aa..38cc6043 100644 --- a/modules/geoip.py +++ b/modules/geoip.py @@ -5,10 +5,11 @@ URL_GEOIP = "http://ip-api.com/json/%s" class Module(ModuleManager.BaseModule): _name = "GeoIP" - @Utils.hook("received.command.geoip", min_args=1, usage="<IP>") + @Utils.hook("received.command.geoip", min_args=1) def geoip(self, event): """ - Get geoip data on a given IPv4/IPv6 address + :help: Get geoip data on a given IPv4/IPv6 address + :usage: <IP> """ page = Utils.get_url(URL_GEOIP % event["args_split"][0], json=True) |
