Fix reporting to chat

meow-7.2.2
Cinders 2013-06-27 14:38:28 -06:00
parent e45a08cd90
commit 97ffd44982
5 changed files with 8 additions and 19 deletions

View File

@ -54,11 +54,12 @@ S32 FSCommon::sObjectAddMsg = 0;
void reportToNearbyChat(const std::string& message)
{
// Generic report to chat convenience function
// TODO: This should be replaced with a proper report to chat notification method <FS:CR>
LLChat chat;
chat.mText = message;
chat.mSourceType = CHAT_SOURCE_SYSTEM;
LLSD args;
args["message"] = message;
LLNotificationsUtil::add("ReportToNearbyChat", args);
LLNotificationsUI::LLNotificationManager::instance().onChat(chat, args);
}
std::string applyAutoCloseOoc(const std::string& message)

View File

@ -136,7 +136,6 @@ void FSRadar::radarAlertMsg(const LLUUID& agent_id, const LLAvatarName& av_name,
chat.mChatType = CHAT_TYPE_RADAR;
// FS:LO FIRE-1439 - Clickable avatar names on local chat radar crossing reports
LLSD args;
args["type"] = LLNotificationsUI::NT_NEARBYCHAT;
LLNotificationsUI::LLNotificationManager::instance().onChat(chat, args);
} // <FS:CR />
}

View File

@ -71,8 +71,8 @@
#include "fsfloaternearbychat.h" //<FS:TM> CHUI Merge can we get rid if this? line 903
// <FS:Ansariel> [FS communication UI]
// </FS:Zi>
//#include "llfloaterreg.h"
//#include "llnotificationmanager.h"
#include "llfloaterreg.h"
#include "llnotificationmanager.h"
// <FS:Ansariel> [FS communication UI]
//#include "llimfloater.h"
#include "fsfloaterim.h"
@ -895,7 +895,6 @@ static void on_avatar_name_cache_notify(const LLUUID& agent_id,
LLChat chat;
chat.mText = notify_msg;
chat.mSourceType = CHAT_SOURCE_SYSTEM;
args["type"] = LLNotificationsUI::NT_NEARBYCHAT; //<FS:TM> CHUI Merge error- has no member NT_NEARBYCHAT
if (history_only)
{
// <FS:Ansariel> [FS communication UI]

View File

@ -72,5 +72,5 @@ void LLNotificationManager::onChat(const LLChat& msg, const LLSD &args)
{
if(mChatHandler)
mChatHandler->processChat(msg, args);
}
}

View File

@ -11263,14 +11263,4 @@ You are about to eject [COUNT] members from the group.
yestext="Eject"/>
</notification>
<notification
icon="notify.tga"
name="ReportToNearbyChat"
log_to_im="false"
log_to_chat="true"
show_toast="false"
type="notify">
[MESSAGE]
</notification>
</notifications>