Refactor in treatment analysis

This commit is contained in:
nemunaire 2018-02-10 09:51:51 +01:00
commit 342bb9acdc
3 changed files with 34 additions and 47 deletions

View file

@ -272,7 +272,6 @@ def treat_alias(msg):
# Avoid infinite recursion
if not isinstance(rpl_msg, Command) or msg.cmd != rpl_msg.cmd:
# Also return origin message, if it can be treated as well
return [msg, rpl_msg]
return rpl_msg
return msg