Add $ishalfop(<nick> <channel>) scripting function, as per EPIC.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@34 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2008-05-07 08:48:49 +00:00
parent 998453de9f
commit 285b02c36a
6 changed files with 54 additions and 6 deletions

View File

@@ -648,6 +648,11 @@ enum FUNCTION_VALUE
CHECK_EXT_MAIL,
DEFAULT_OUTPUT_FUNCTION,
DEFAULT_STATUS_OUTPUT_FUNCTION,
/* names.c */
IS_HALFOP,
/* leave at the end */
NUMBER_OF_GLOBAL_FUNCTIONS
};

View File

@@ -416,6 +416,7 @@ extern Function_ptr *global;
#define is_channel (*(int (*)(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])
#define im_on_channel (*(int (*)(char *, int ))global[IM_ON_CHANNEL])
#define is_on_channel (*(int (*)(char *, int , char *))global[IS_ON_CHANNEL])
#define add_channel (*(ChannelList *(*)(char *, int, int))global[ADD_CHANNEL])

View File

@@ -35,6 +35,7 @@ int got_info (char *, int, int);
int is_channel_mode (char *, int, int);
int BX_is_chanop (char *, char *);
int BX_is_halfop (char *, char *);
char *is_chanoper (char *, char *);
ChannelList *BX_lookup_channel (char *, int, int);
char *BX_get_channel_mode (char *, int);