Skip to content

Commit

Permalink
Merge pull request #168 from Alasnkz/master
Browse files Browse the repository at this point in the history
Add persistence support for DCC_OnCreateMessage
  • Loading branch information
Alasnkz authored Nov 20, 2020
2 parents 7d989cf + 43ccd11 commit 9b8b664
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ void MessageManager::Initialize()
pawn_cb::Error error;
pawn_cb::Callback::CallFirst(error, "DCC_OnMessageCreate", msg);

MessageManager::Get()->Delete(msg);
if (!MessageManager::Get()->Find(msg)->Persistent())
{
MessageManager::Get()->Delete(msg);
}
}
});
});
Expand Down

0 comments on commit 9b8b664

Please sign in to comment.