Copy the reply_env when copying an IrcMsg object.

This commit is contained in:
Valentin Lorentz 2014-04-18 07:08:14 +00:00
parent 30cc4804eb
commit cab4cb5059
1 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,10 @@ class IrcMsg(object):
self.args = args
else:
self.args = msg.args
if reply_env:
self.reply_env = reply_env
else:
self.reply_env = msg.reply_env.copy()
self.tags = msg.tags.copy()
else:
self.prefix = prefix