aome nickserv auth tweaks

This commit is contained in:
jan6 2022-09-12 14:33:37 +03:00
parent e07f7bfe68
commit e9636e8164
1 changed files with 8 additions and 1 deletions

9
stuff.py Executable file → Normal file
View File

@ -29,10 +29,17 @@ def stuff(bot, sock):
nick=config.self.nick,
passwd=config.server.nickserv_pass,
auth="nickserv",
nickservmask="NickServ",
):
# TODO: handle auth that isn't nickserv
if auth.lower() == "nickserv": # line.source.split("!")[0]
# TODO: on most network can probably do "PRIVMSG NickServ@services. :help"
util.mesg(f"IDENTIFY {nick} {passwd}", "NickServ")
if nickservmask == "NickServ":
try:
nickservmask = config.server.nickserv_mask
except:
True
util.mesg(f"IDENTIFY {nick} {passwd}", nickservmask)
def configure():
config = importlib.reload(sys.modules["config"]).config