Bug 3093 - Don't send /m to all-chat when PMs are disabled
Status: RESOLVED FIXED
Alias: None
Product: Tremulous
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: All All
: P3 minor
Assignee: Tremulous Bugs
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2007-04-26 15:16 EDT by Chris "Lakitu7" Schwarz
Modified: 2007-05-22 00:31:29 EDT
0 users

See Also:


Attachments
fix + notifications (1.26 KB, patch)
2007-04-26 15:17 EDT, Chris "Lakitu7" Schwarz
fix + notifications (1.18 KB, patch)
2007-04-26 18:23 EDT, Chris "Lakitu7" Schwarz

Description Chris "Lakitu7" Schwarz 2007-04-26 15:16:08 EDT
When g_privateMessages is set to 0 and a user types what is intended to be a private message into the chat, it is sent to everyone. This can lead to embarassing situations.

This patch fixes the behavior, as well as adding notice that PMs have been disabled when someone tries to use them.
Comment 1 Chris "Lakitu7" Schwarz 2007-04-26 15:17:28 EDT
Created attachment 1319 [details]
fix + notifications

Stops PMs from being sent to all-chat when g_privateMessages 0. Also notifies user that PMs have been disabled.
Comment 2 Chris "Lakitu7" Schwarz 2007-04-26 18:23:10 EDT
Created attachment 1320 [details]
fix + notifications

code cleanup fixes
Comment 3 Tony J. White 2007-05-22 00:31:29 EDT
added at revision 940