Hook factorisation ; add new hooks : default (same comportement has previous version) and one hook before any parsing
When calling a hook, passed parameters change according to associated data variable
This commit is contained in:
parent
9ec07790ef
commit
7e20368c10
8 changed files with 109 additions and 63 deletions
|
|
@ -78,7 +78,7 @@ def print_station_status(msg, station):
|
|||
else:
|
||||
msg.send_chn("%s: station %s inconnue." % (msg.nick, station))
|
||||
|
||||
def ask_stations(data, msg):
|
||||
def ask_stations(msg):
|
||||
"""Hook entry from !velib"""
|
||||
global DATAS
|
||||
if len(msg.cmd) > 5:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue