From 5a2b7989cb4d5ede8bd756b1373279f0dc5b9e4e Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 1 Mar 2014 18:47:05 +0000 Subject: - conf_class.h: use an enum for flag types git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3088 82007160-df01-0410-b94d-b575c5fd34c7 --- include/conf_class.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/conf_class.h b/include/conf_class.h index 282e91a..587b83f 100644 --- a/include/conf_class.h +++ b/include/conf_class.h @@ -28,10 +28,12 @@ #ifndef INCLUDED_conf_class_h #define INCLUDED_conf_class_h -#define CLASS_FLAGS_FAKE_IDLE 0x01 -#define CLASS_FLAGS_RANDOM_IDLE 0x02 -#define CLASS_FLAGS_HIDE_IDLE_FROM_OPERS 0x04 - +enum +{ + CLASS_FLAGS_FAKE_IDLE = 1 << 0, + CLASS_FLAGS_RANDOM_IDLE = 1 << 1, + CLASS_FLAGS_HIDE_IDLE_FROM_OPERS = 1 << 2 +}; struct ClassItem { -- cgit