Skip to content

Commit

Permalink
Bug fix that prevent buny to go to sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixel166 committed Apr 5, 2012
1 parent 3c61b69 commit 52fea0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/bunny.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ QByteArray Bunny::GetInitPacket() const

void Bunny::SendPacket(Packet const& p)
{
if (xmppHandler && (p.GetType() == Packet::Packet_Message && (!IsSleeping() || GetGlobalSetting("Insomniac",false).toBool())))
if (xmppHandler && (p.GetType() != Packet::Packet_Message || (!IsSleeping() || GetGlobalSetting("Insomniac",false).toBool())))
{
NetworkDump::Log("XMPP SendPacketToBunny", p.GetPrintableData());
xmppHandler->WriteDataToBunny(p.GetData());
Expand Down

0 comments on commit 52fea0f

Please sign in to comment.