Improve bots network: when two connected bots are on the same channel, only one answers to the user

This commit is contained in:
Némunaire 2012-11-08 14:54:05 +01:00
commit b477d5b8b7
3 changed files with 28 additions and 26 deletions

View file

@ -19,8 +19,9 @@
from response import Response
class MessagesHook:
def __init__(self, context):
def __init__(self, context, bot):
self.context = context
self.bot = bot
# Store specials hooks
self.all_pre = list() # Treated before any parse