summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-22 16:22:32 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:43:13 (GMT)
commite9ee8a5fa7f40b779e5a3c2cf369a79ff21f7741 (patch)
treedbfce5df5aa94e98268ec81e7235aecdc012561c
parent0b046bb066077ed0033c682fed188e8281891929 (diff)
Message initialization: make it clearer
-rw-r--r--src/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.py b/src/message.py
index 5ab1999..2535ec8 100644
--- a/src/message.py
+++ b/src/message.py
@@ -49,7 +49,6 @@ class Message(object):
self.shortcut = shortcut
# do not use a numerical value because that could easier
# change with software updates
- Message.defined[self.name] = self
className = self.__class__.__name__.replace('Message', '')
msgName = self.name.replace(' ', '')
assert className == msgName, '%s != %s' % (className, msgName)
@@ -848,6 +847,7 @@ def __scanSelf():
raise
type.__setattr__(
Message, msg.name.replace(' ', ''), msg)
+ Message.defined[msg.name] = msg
class ChatMessage(object):