diff options
author | lassulus <lass@blue.r> | 2018-09-26 17:11:18 +0200 |
---|---|---|
committer | lassulus <lass@blue.r> | 2018-09-26 17:15:33 +0200 |
commit | 9176cc4875407ba046c023a5cdc9ff6ac5b2415d (patch) | |
tree | 22af539850d1137c8925a12744c7f1aaab08d224 | |
parent | 2dfb816ddadb34e5b11676ef18c3c2f9079c8146 (diff) |
ircasy: use irc password instead of messaging nickserv
-rw-r--r-- | reaktor/ircasy.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/reaktor/ircasy.py b/reaktor/ircasy.py index bdb0a60..99fe881 100644 --- a/reaktor/ircasy.py +++ b/reaktor/ircasy.py @@ -133,9 +133,6 @@ class asybot(asychat): elif command == '376' or command == '422': self.on_welcome(prefix, command, params, rest) - elif command == 'NOTICE' and rest.startswith('You are now identified'): - self.push('JOIN %s' % ','.join(self.channels)) - self.reset_alarm() def push(self, message): @@ -160,6 +157,8 @@ class asybot(asychat): self.connect((self.server, self.port)) def handle_connect(self): + if self.nickserv_password: + self.push(f'PASS {self.nickserv_password}') self.push('NICK %s' % self.nickname) self.push('USER %s %s %s :%s' % (self.username, self.hostname, self.server, self.realname)) @@ -181,8 +180,6 @@ class asybot(asychat): self.PRIVMSG(target, ('ACTION ' + text + '')) def on_welcome(self, prefix, command, params, rest): - if self.nickserv_password: - self.push(f'PRIVMSG nickserv :IDENTIFY {self.nickserv_password}') self.push('JOIN %s' % ','.join(self.channels)) def on_kick(self, prefix, command, params, rest): |