mirror of
https://github.com/anope/anope.git
synced 2026-07-10 04:23:13 +02:00
Removed some unnecessary casts, used C++-style casts over C-style casts, fixed a few warnings (one possibly fatal one).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2655 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+3
-3
@@ -466,7 +466,7 @@ User *finduser(const char *nick)
|
||||
*/
|
||||
const bool User::HasMode(UserModeName Name) const
|
||||
{
|
||||
return modes[(size_t)Name];
|
||||
return modes[Name];
|
||||
}
|
||||
|
||||
/** Set a mode on the user
|
||||
@@ -474,7 +474,7 @@ const bool User::HasMode(UserModeName Name) const
|
||||
*/
|
||||
void User::SetMode(UserModeName Name)
|
||||
{
|
||||
modes[(size_t)Name] = true;
|
||||
modes[Name] = true;
|
||||
FOREACH_MOD(I_OnUserModeSet, OnUserModeSet(this, Name));
|
||||
}
|
||||
|
||||
@@ -496,7 +496,7 @@ void User::SetMode(char ModeChar)
|
||||
*/
|
||||
void User::RemoveMode(UserModeName Name)
|
||||
{
|
||||
modes[(size_t)Name] = false;
|
||||
modes[Name] = false;
|
||||
FOREACH_MOD(I_OnUserModeUnset, OnUserModeUnset(this, Name));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user