From 8f17c0a977f04af8fdafef6b6122e8fc47fea416 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Sun, 7 Sep 2014 23:52:54 +0200 Subject: [PATCH] Velib module: fix use without xml configuration file --- modules/velib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/velib.py b/modules/velib.py index 3a4cfe8..d8f9ea2 100644 --- a/modules/velib.py +++ b/modules/velib.py @@ -4,6 +4,7 @@ import re +from hooks import hook from tools import web nemubotversion = 3.4 @@ -60,6 +61,7 @@ def print_station_status(msg, station): channel=msg.channel, nick=msg.nick) raise IRCException("station %s inconnue." % station) +@hook("cmd_hook", "velib") def ask_stations(msg): """Hook entry from !velib""" global DATAS