Very minor simplification/cleanup of is_channel()
This commit is contained in:
@@ -321,7 +321,7 @@ extern int cpu_saver;
|
||||
extern struct sockaddr_foobar local_ip_address;
|
||||
|
||||
|
||||
int BX_is_channel (char *);
|
||||
int BX_is_channel (const char *);
|
||||
void BX_irc_exit (int, char *, char *, ...);
|
||||
void BX_beep_em (int);
|
||||
void got_initial_version (char *);
|
||||
|
||||
@@ -404,7 +404,7 @@ extern Function_ptr *global;
|
||||
#define add_completion_type (*(int (*)(char *, int , enum completion ))global[ADD_COMPLETION_TYPE])
|
||||
|
||||
/* names.c */
|
||||
#define is_channel (*(int (*)(char *))global[IS_CHANNEL])
|
||||
#define is_channel (*(int (*)(const char *))global[IS_CHANNEL])
|
||||
#define make_channel (*(char *(*)(char *))global[MAKE_CHANNEL])
|
||||
#define is_chanop (*(int (*)(char *, char *))global[IS_CHANOP])
|
||||
#define is_halfop (*(int (*)(char *, char *))global[IS_HALFOP])
|
||||
|
||||
Reference in New Issue
Block a user