Change the channel mode flags from const ints in names.c to #define macros in names.h.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@134 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2011-08-30 14:50:42 +00:00
parent 3f8952f20a
commit c89a718fa1
5 changed files with 15 additions and 21 deletions

View File

@@ -3534,7 +3534,6 @@ char *str = NULL;
BUILT_IN_COMMAND(e_topic)
{
extern int MODE_TOPIC;
char *arg = NULL;
char *arg2;
ChannelList *chan;

View File

@@ -100,8 +100,6 @@ extern char attach_ttyname[];
char *org_nick = NULL;
static int delay_gain_nick (void *, char *);
extern int MODE_TOPIC, MODE_MODERATED, MODE_ANONYMOUS, MODE_INVITE,
MODE_MSGS, MODE_SECRET, MODE_PRIVATE, MODE_KEY, MODE_LIMIT;
BUILT_IN_COMMAND(nwhois)
{

View File

@@ -59,23 +59,6 @@ static void apply_channel_modes (char *, char *, ChannelList *);
static char mode_str[] = "aciklmnprstzR";
char new_channel_format[BIG_BUFFER_SIZE];
const int MODE_ANONYMOUS = 1 << 0; /* av2.9 */
const int MODE_C = 1 << 1; /* erf/TS4 */
const int MODE_INVITE = 1 << 2; /* RFC */
const int MODE_KEY = 1 << 3; /* RFC */
const int MODE_LIMIT = 1 << 4; /* RFC */
const int MODE_MODERATED = 1 << 5; /* RFC */
const int MODE_MSGS = 1 << 6; /* RFC */
const int MODE_PRIVATE = 1 << 7; /* RFC */
const int MODE_REGISTERED = 1 << 8; /* Dalnet */
const int MODE_SECRET = 1 << 9; /* RFC */
const int MODE_TOPIC = 1 << 10; /* RFC */
const int MODE_Z = 1 << 11; /* erf/TS4 */
const int MODE_RESTRICTED = 1 << 12; /* Dalnet */
static struct modelist
{
char *chan;

View File

@@ -1178,7 +1178,6 @@ static char my_buffer[IRCD_BUFFER_SIZE + 1];
if (window->current_channel/* && chan_is_connected(s, window->server)*/)
{
extern const int MODE_PRIVATE, MODE_SECRET;
int num;
if (get_int_var(HIDE_PRIVATE_CHANNELS_VAR) &&
is_channel_mode(window->current_channel,