Browse Source

Nickserv authentication

translation
Rogier Neeleman 10 years ago
parent
commit
1c10d2c080
  1. 1
      botconfig.py.example
  2. 4
      modules/common.py

1
botconfig.py.example

@ -6,6 +6,7 @@ USERNAME = "" # for authentication, can be left blank if same as NICK
OPERUSER = "OPPER user" OPERUSER = "OPPER user"
OPERPASS = "OPER password" OPERPASS = "OPER password"
NICK = "mywolfbot" NICK = "mywolfbot"
NICKPASS = "nickserv password"
CMD_CHAR = "!" CMD_CHAR = "!"
CHANGING_HOST_QUIT_MESSAGE = "Changing host" CHANGING_HOST_QUIT_MESSAGE = "Changing host"

4
modules/common.py

@ -98,7 +98,9 @@ def connect_callback(cli):
def prepare_stuff(*args): def prepare_stuff(*args):
cli.send("OPER", botconfig.OPERUSER, botconfig.OPERPASS) cli.send("OPER", botconfig.OPERUSER, botconfig.OPERPASS)
#cli.msg("NickServ", "IDENTIFY", botconfig.NICKPASS)
cli.ns_identify(botconfig.NICKPASS)
cli.join(botconfig.CHANNEL) cli.join(botconfig.CHANNEL)
cli.msg("ChanServ", "op "+botconfig.CHANNEL) cli.msg("ChanServ", "op "+botconfig.CHANNEL)

Loading…
Cancel
Save