diff options
author | Jacek Antonelli | 2008-08-15 23:46:01 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:46:01 -0500 |
commit | ae88605f72ef43be7b619b8c1c11a508ebae5057 (patch) | |
tree | f27474fe2d1186124211e2a5b2ad31927a3ab5bc /linden/indra/newview/llimpanel.cpp | |
parent | Second Life viewer sources 1.20.13 (diff) | |
download | meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.zip meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.tar.gz meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.tar.bz2 meta-impy-ae88605f72ef43be7b619b8c1c11a508ebae5057.tar.xz |
Second Life viewer sources 1.20.14
Diffstat (limited to 'linden/indra/newview/llimpanel.cpp')
-rw-r--r-- | linden/indra/newview/llimpanel.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/linden/indra/newview/llimpanel.cpp b/linden/indra/newview/llimpanel.cpp index b25521d..ae8bd4b 100644 --- a/linden/indra/newview/llimpanel.cpp +++ b/linden/indra/newview/llimpanel.cpp | |||
@@ -1862,9 +1862,27 @@ void deliver_message(const std::string& utf8_text, | |||
1862 | im_session_id); | 1862 | im_session_id); |
1863 | gAgent.sendReliableMessage(); | 1863 | gAgent.sendReliableMessage(); |
1864 | 1864 | ||
1865 | if (LLMuteList::getInstance()) | 1865 | // If there is a mute list and this is not a group chat... |
1866 | if ( LLMuteList::getInstance() ) | ||
1866 | { | 1867 | { |
1867 | LLMuteList::getInstance()->autoRemove(other_participant_id, LLMuteList::AR_IM); | 1868 | // ... the target should not be in our mute list for some message types. |
1869 | // Auto-remove them if present. | ||
1870 | switch( dialog ) | ||
1871 | { | ||
1872 | case IM_NOTHING_SPECIAL: | ||
1873 | case IM_GROUP_INVITATION: | ||
1874 | case IM_INVENTORY_OFFERED: | ||
1875 | case IM_SESSION_INVITE: | ||
1876 | case IM_SESSION_P2P_INVITE: | ||
1877 | case IM_SESSION_CONFERENCE_START: | ||
1878 | case IM_SESSION_SEND: // This one is marginal - erring on the side of hearing. | ||
1879 | case IM_LURE_USER: | ||
1880 | case IM_GODLIKE_LURE_USER: | ||
1881 | case IM_FRIENDSHIP_OFFERED: | ||
1882 | LLMuteList::getInstance()->autoRemove(other_participant_id, LLMuteList::AR_IM); | ||
1883 | break; | ||
1884 | default: ; // do nothing | ||
1885 | } | ||
1868 | } | 1886 | } |
1869 | } | 1887 | } |
1870 | 1888 | ||