1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 15:36:38 +02:00

Fix unserializing badwords to not add dupes when unserializing an existing bw object

This commit is contained in:
Adam
2014-09-01 13:11:21 -04:00
parent bf8f62c32d
commit 3bdc81348a
+2 -1
View File
@@ -138,7 +138,8 @@ Serializable* BadWordImpl::Unserialize(Serializable *obj, Serialize::Data &data)
bw->type = static_cast<BadWordType>(n);
BadWordsImpl *bws = ci->Require<BadWordsImpl>("badwords");
bws->badwords->push_back(bw);
if (!obj)
bws->badwords->push_back(bw);
return bw;
}