Set usermode +B on connect
Also, add plugin to allow me to manually +B the bot (so I didn't have to restart it the first time).
This commit is contained in:
parent
65a2b3efc4
commit
3162bfd462
|
@ -35,6 +35,7 @@ try:
|
|||
except: pass
|
||||
def login(event):
|
||||
BOT.socket.send(IRCLine("NS","IDENTIFY",PASSWORD).line)
|
||||
BOT.socket.send(IRCLine("MODE",BOT.nickname,"+B").line)
|
||||
|
||||
def register(bot):
|
||||
global BOT
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
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)
|
Loading…
Reference in New Issue