summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 14:18:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 14:18:33 +0000
commit23101be0f2e1f1853147dfb0078b8aadbca76746 (patch)
tree88192ba795dad80021324b0129df24f7d5789ae8
parent368022378b7618bad9e785ab5e5d3d57e6c5369f (diff)
UM_WALLOPS had value 3 which was a combination of UM_SERVERNOTICE and UM_INVISIBLE :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3591 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/mode.h2
-rw-r--r--src/mode.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/include/mode.h b/include/mode.h
index 54b4aa97e..08ac33597 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -32,7 +32,7 @@
enum UserModeBits {
UM_INVISIBLE = 1,
UM_SERVERNOTICE = 2,
- UM_WALLOPS = 3
+ UM_WALLOPS = 4
};
class ModeParser
diff --git a/src/mode.cpp b/src/mode.cpp
index 73315227a..dbbb42289 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -1253,6 +1253,8 @@ void cmd_mode::Handle (char **parameters, int pcnt, userrec *user)
case 'w':
dest->modebits |= UM_WALLOPS;
break;
+ default:
+ break;
}
}
}
@@ -1280,6 +1282,8 @@ void cmd_mode::Handle (char **parameters, int pcnt, userrec *user)
case 'w':
dest->modebits &= ~UM_WALLOPS;
break;
+ default:
+ break;
}
}
}