From 11496b4bbbbf361d5c0909884ae08e97bd564a99 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 7 Feb 2016 10:49:17 +0100 Subject: [PATCH] ircdb: When serializing, do not write a 'password' command if there is no password set. Having a 'password' command with no password stops the unserialization for that user. May be a first step toward allowing users with no password (GH-1140). --- src/ircdb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ircdb.py b/src/ircdb.py index fc64e7cb1..c405932f2 100644 --- a/src/ircdb.py +++ b/src/ircdb.py @@ -352,8 +352,9 @@ class IrcUser(object): write('name %s' % self.name) write('ignore %s' % self.ignore) write('secure %s' % self.secure) - write('hashed %s' % self.hashed) - write('password %s' % self.password) + if self.password: + write('hashed %s' % self.hashed) + write('password %s' % self.password) for capability in self.capabilities: write('capability %s' % capability) for hostmask in self.hostmasks: