This commit is contained in:
Glenn Maynard
2005-12-31 04:19:53 +00:00
parent c9ec1d251f
commit 515134e584
2 changed files with 0 additions and 27 deletions
-24
View File
@@ -503,30 +503,6 @@ float PrefsManager::GetSoundVolume()
return clamp(m_fSoundVolume.Get(),0.0f,1.0f);
}
bool PrefsManager::MessageIsIgnored( const CString &ID )
{
vector<CString> list;
split( PREFSMAN->m_sIgnoredMessageWindows, ",", list );
for( unsigned i = 0; i < list.size(); ++i )
if( !ID.CompareNoCase(list[i]) )
return true;
return false;
}
void PrefsManager::IgnoreMessage( const CString &ID )
{
if( ID == "" )
if( MessageIsIgnored(ID) )
return;
vector<CString> list;
split( PREFSMAN->m_sIgnoredMessageWindows, ",", list );
list.push_back( ID );
PREFSMAN->m_sIgnoredMessageWindows.Set( join(",",list) );
PREFSMAN->SavePrefsToDisk();
}
// lua start
#include "LuaBinding.h"
-3
View File
@@ -261,9 +261,6 @@ public:
CString GetPreferencesSection() const;
bool MessageIsIgnored( const CString &ID );
void IgnoreMessage( const CString &ID );
// Lua
void PushSelf( lua_State *L );