From 5f83fb256a3f00204cabed02094432b6fe5b3b8d Mon Sep 17 00:00:00 2001 From: jak1 Date: Thu, 21 May 2020 22:54:44 +0200 Subject: moved all skillbased errors to debugChatTab --- src/net/eathena/skillrecv.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/net/eathena/skillrecv.cpp b/src/net/eathena/skillrecv.cpp index 3595d0d90..0c30d023b 100644 --- a/src/net/eathena/skillrecv.cpp +++ b/src/net/eathena/skillrecv.cpp @@ -33,6 +33,8 @@ #include "gui/widgets/createwidget.h" +#include "gui/widgets/tabs/chat/chattab.h" + #include "gui/windows/skilldialog.h" #include "gui/windows/textselectdialog.h" @@ -421,8 +423,12 @@ void SkillRecv::processSkillFailed(Net::MessageIn &msg) UNIMPLEMENTEDPACKETFIELD(reason); break; } - - NotifyManager::notify(NotifyTypes::SKILL_FAIL_MESSAGE, txt); + if (debugChatTab != nullptr) + debugChatTab->chatLog("SKILL: " + + txt, + ChatMsgType::BY_SERVER, + IgnoreRecord_false, + TryRemoveColors_true); } void SkillRecv::processSkillWarpPoint(Net::MessageIn &msg) -- cgit v1.2.3-60-g2f50