summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-05-10 02:04:55 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2016-05-10 02:15:37 +0200
commit25d7a6b1bf59ac15e2f11fd776f6ae7f16237c0e (patch)
treee0f033894f65b247cf042449782370f0ed5a08b7
parent93495ee52b237b1baf971fb835a409dd0d37e7dc (diff)
downloadbot-25d7a6b1bf59ac15e2f11fd776f6ae7f16237c0e.tar.gz
bot-25d7a6b1bf59ac15e2f11fd776f6ae7f16237c0e.tar.bz2
bot-25d7a6b1bf59ac15e2f11fd776f6ae7f16237c0e.zip
startup: Use always the configured nick for NICKSERV auth
It is possible that a custom module changes the nick during connection phase (maybe because the nick is already used). The NickServ identification should use the configured nick, because the other one might not be registered.
-rwxr-xr-xmodules/startup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/startup.py b/modules/startup.py
index b9ad910..df53a3f 100755
--- a/modules/startup.py
+++ b/modules/startup.py
@@ -54,7 +54,8 @@ def startup(phenny, input):
phenny.write(('PASS', phenny.config.serverpass))
if hasattr(phenny.config, 'password'):
- phenny.msg('NickServ', 'IDENTIFY %s' % phenny.config.password)
+ phenny.msg('NickServ', 'IDENTIFY %s %s' % (
+ phenny.config.nick, phenny.config.password))
time.sleep(5)
# Cf. http://swhack.com/logs/2005-12-05#T19-32-36