Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
d40c4f9b
Commit
d40c4f9b
authored
15 years ago
by
Igor Borovkov
Browse files
Options
Downloads
Patches
Plain Diff
fixed EXT-4073 [BSI] Shouting is malformed in plain chat mode
--HG-- branch : product-engine
parent
5eb5ab13
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llchathistory.cpp
+6
-3
6 additions, 3 deletions
indra/newview/llchathistory.cpp
indra/newview/llfloaterchat.cpp
+8
-1
8 additions, 1 deletion
indra/newview/llfloaterchat.cpp
with
14 additions
and
4 deletions
indra/newview/llchathistory.cpp
+
6
−
3
View file @
d40c4f9b
...
@@ -500,6 +500,9 @@ void LLChatHistory::appendMessage(const LLChat& chat, const bool use_plain_text_
...
@@ -500,6 +500,9 @@ void LLChatHistory::appendMessage(const LLChat& chat, const bool use_plain_text_
style_params
.
font
.
size
(
font_size
);
style_params
.
font
.
size
(
font_size
);
style_params
.
font
.
style
(
input_append_params
.
font
.
style
);
style_params
.
font
.
style
(
input_append_params
.
font
.
style
);
//whether to show colon after a name in header copy/past and in plain text mode
bool
show_colon
=
chat
.
mChatType
!=
CHAT_TYPE_SHOUT
&&
chat
.
mChatType
!=
CHAT_TYPE_WHISPER
;
if
(
use_plain_text_chat_history
)
if
(
use_plain_text_chat_history
)
{
{
mEditor
->
appendText
(
"["
+
chat
.
mTimeStr
+
"] "
,
mEditor
->
getText
().
size
()
!=
0
,
style_params
);
mEditor
->
appendText
(
"["
+
chat
.
mTimeStr
+
"] "
,
mEditor
->
getText
().
size
()
!=
0
,
style_params
);
...
@@ -512,11 +515,11 @@ void LLChatHistory::appendMessage(const LLChat& chat, const bool use_plain_text_
...
@@ -512,11 +515,11 @@ void LLChatHistory::appendMessage(const LLChat& chat, const bool use_plain_text_
LLStyle
::
Params
link_params
(
style_params
);
LLStyle
::
Params
link_params
(
style_params
);
link_params
.
fillFrom
(
LLStyleMap
::
instance
().
lookupAgent
(
chat
.
mFromID
));
link_params
.
fillFrom
(
LLStyleMap
::
instance
().
lookupAgent
(
chat
.
mFromID
));
// Convert the name to a hotlink and add to message.
// Convert the name to a hotlink and add to message.
mEditor
->
appendText
(
chat
.
mFromName
+
": "
,
false
,
link_params
);
mEditor
->
appendText
(
chat
.
mFromName
+
(
show_colon
?
": "
:
" "
)
,
false
,
link_params
);
}
}
else
else
{
{
mEditor
->
appendText
(
chat
.
mFromName
+
": "
,
false
,
style_params
);
mEditor
->
appendText
(
chat
.
mFromName
+
(
show_colon
?
": "
:
" "
)
,
false
,
style_params
);
}
}
}
}
}
}
...
@@ -562,7 +565,7 @@ void LLChatHistory::appendMessage(const LLChat& chat, const bool use_plain_text_
...
@@ -562,7 +565,7 @@ void LLChatHistory::appendMessage(const LLChat& chat, const bool use_plain_text_
std
::
string
header_text
=
"["
+
chat
.
mTimeStr
+
"] "
;
std
::
string
header_text
=
"["
+
chat
.
mTimeStr
+
"] "
;
if
(
utf8str_trim
(
chat
.
mFromName
).
size
()
!=
0
&&
chat
.
mFromName
!=
SYSTEM_FROM
)
if
(
utf8str_trim
(
chat
.
mFromName
).
size
()
!=
0
&&
chat
.
mFromName
!=
SYSTEM_FROM
)
header_text
+=
chat
.
mFromName
+
": "
;
header_text
+=
chat
.
mFromName
+
(
show_colon
?
": "
:
" "
)
;
mEditor
->
appendWidget
(
p
,
header_text
,
false
);
mEditor
->
appendWidget
(
p
,
header_text
,
false
);
mLastFromName
=
chat
.
mFromName
;
mLastFromName
=
chat
.
mFromName
;
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llfloaterchat.cpp
+
8
−
1
View file @
d40c4f9b
...
@@ -190,7 +190,14 @@ void LLFloaterChat::addChatHistory(const LLChat& chat, bool log_to_file)
...
@@ -190,7 +190,14 @@ void LLFloaterChat::addChatHistory(const LLChat& chat, bool log_to_file)
{
{
if
(
log_to_file
&&
(
gSavedPerAccountSettings
.
getBOOL
(
"LogChat"
)))
if
(
log_to_file
&&
(
gSavedPerAccountSettings
.
getBOOL
(
"LogChat"
)))
{
{
LLLogChat
::
saveHistory
(
"chat"
,
chat
.
mFromName
,
chat
.
mFromID
,
chat
.
mText
);
if
(
chat
.
mChatType
!=
CHAT_TYPE_WHISPER
&&
chat
.
mChatType
!=
CHAT_TYPE_SHOUT
)
{
LLLogChat
::
saveHistory
(
"chat"
,
chat
.
mFromName
,
chat
.
mFromID
,
chat
.
mText
);
}
else
{
LLLogChat
::
saveHistory
(
"chat"
,
""
,
chat
.
mFromID
,
chat
.
mFromName
+
" "
+
chat
.
mText
);
}
}
}
LLColor4
color
=
get_text_color
(
chat
);
LLColor4
color
=
get_text_color
(
chat
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment