Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
bca7b641
Commit
bca7b641
authored
Nov 13, 2011
by
Max-Wilhelm Bruker
Browse files
hide messages from ignored users in room chat
parent
7dc25633
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/tab_room.cpp
View file @
bca7b641
...
...
@@ -10,6 +10,7 @@
#include
<QSplitter>
#include
"tab_supervisor.h"
#include
"tab_room.h"
#include
"tab_userlists.h"
#include
"userlist.h"
#include
"abstractclient.h"
#include
"protocol_items.h"
...
...
@@ -156,6 +157,7 @@ void TabRoom::processLeaveRoomEvent(Event_LeaveRoom *event)
void
TabRoom
::
processSayEvent
(
Event_RoomSay
*
event
)
{
chatView
->
appendMessage
(
event
->
getPlayerName
(),
event
->
getMessage
());
if
(
!
tabSupervisor
->
getUserListsTab
()
->
getIgnoreList
()
->
userInList
(
event
->
getPlayerName
()))
chatView
->
appendMessage
(
event
->
getPlayerName
(),
event
->
getMessage
());
emit
userEvent
(
false
);
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment