Fixed creation function that caused entities to be wrong-named in certain circumstances. Server now starts and shutsdown without tracebacks.

This commit is contained in:
Griatch 2015-01-01 21:13:36 +01:00
parent 3d557f6bf9
commit 0b01df1fcc
3 changed files with 9 additions and 6 deletions

View file

@ -31,7 +31,8 @@ class Channel(ChannelDB):
# with the utils.create.create_channel function.
cdict = self._createdict
if not cdict["key"]:
self.db_key = "#i" % self.dbid
if not self.db_key:
self.db_key = "#i" % self.dbid
elif cdict["key"] and self.key != cdict["key"]:
self.key = cdict["key"]
if cdict["keep_log"]: