class Connection:
def __init__(self, irker, target, nick_template, nick_needs_number=False,
- **kwargs):
+ password=None, **kwargs):
self.irker = irker
self.target = target
self.nick_template = nick_template
self.nick_needs_number = nick_needs_number
+ self.password = password
self.kwargs = kwargs
self.nick_trial = None
self.connection = None
"The server says we're OK, with a non-conflicting nick."
self.status = "ready"
LOG.info("nick %s accepted" % self.nickname())
- if password:
- self.connection.privmsg("nickserv", "identify %s" % password)
+ if self.password:
+ self.connection.privmsg("nickserv", "identify %s" % self.password)
def handle_badnick(self):
"The server says our nick is ill-formed or has a conflict."
LOG.info("nick %s rejected" % self.nickname())
logfile=logfile,
nick_template=nick_template,
nick_needs_number=re.search("%.*d", nick_template),
+ password=password,
)
LOG.info("irkerd version %s" % version)
if immediate: