12 lines
242 B
Python
12 lines
242 B
Python
|
from bot import IRCLine
|
||
|
BOT = None
|
||
|
|
||
|
def on_admin_raw(event):
|
||
|
# normalize and send line
|
||
|
BOT.socket.send(IRCLine.parse_line(" ".join(event.parts)).line)
|
||
|
|
||
|
def register(bot):
|
||
|
global BOT
|
||
|
BOT=bot
|
||
|
bot.event_manager.on("admin_raw",on_admin_raw)
|