modebuf_flush_int(struct ModeBuf *mbuf, int all)
{
/* we only need the flags that don't take args right now */
- static int flags[] = {
+ static ulong64 flags[] = {
/* MODE_CHANOP, 'o', */
/* MODE_VOICE, 'v', */
MODE_PRIVATE, 'p',
MODE_QUARANTINE, 'Q',
0x0, 0x0
};
- static int local_flags[] = {
+ static ulong64 local_flags[] = {
MODE_WASDELJOINS, 'd',
0x0, 0x0
};
int i;
- int *flag_p;
+ ulong64 *flag_p;
struct Client *app_source; /* where the MODE appears to come from */
char limitbuf[20],accessbuf[20]; /* convert limits to strings */
- unsigned int limitdel = MODE_LIMIT;
- unsigned int accessdel = MODE_ACCESS;
+ ulong64 limitdel = MODE_LIMIT;
+ ulong64 accessdel = MODE_ACCESS;
assert(0 != mbuf);
* @param mode MODE_ADD or MODE_DEL OR'd with MODE_PRIVATE etc.
*/
void
-modebuf_mode(struct ModeBuf *mbuf, unsigned int mode)
+modebuf_mode(struct ModeBuf *mbuf, ulong64 mode)
{
assert(0 != mbuf);
assert(0 != (mode & (MODE_ADD | MODE_DEL)));
}
}
-/** Append a mode that takes an int argument to the modebuf
+/** Append a mode that takes an ulong64 argument to the modebuf
*
* This routine adds a mode to be added or deleted that takes a unsigned
- * int parameter; mode may *only* be the relevant mode flag ORed with one
+ * ulong64 parameter; mode may *only* be the relevant mode flag ORed with one
* of MODE_ADD or MODE_DEL
*
* @param mbuf The mode buffer to append to.
* @param uint The argument to the mode.
*/
void
-modebuf_mode_uint(struct ModeBuf *mbuf, unsigned int mode, unsigned int uint)
+modebuf_mode_uint(struct ModeBuf *mbuf, ulong64 mode, unsigned int uint)
{
assert(0 != mbuf);
assert(0 != (mode & (MODE_ADD | MODE_DEL)));
* @param free If the string should be free'd later.
*/
void
-modebuf_mode_string(struct ModeBuf *mbuf, unsigned int mode, char *string,
+modebuf_mode_string(struct ModeBuf *mbuf, ulong64 mode, char *string,
int free)
{
assert(0 != mbuf);
* @param oplevel The oplevel the user had or will have
*/
void
-modebuf_mode_client(struct ModeBuf *mbuf, unsigned int mode,
+modebuf_mode_client(struct ModeBuf *mbuf, ulong64 mode,
struct Client *client, int oplevel)
{
assert(0 != mbuf);
void
modebuf_extract(struct ModeBuf *mbuf, char *buf)
{
- static int flags[] = {
+ static ulong64 flags[] = {
/* MODE_CHANOP, 'o', */
/* MODE_VOICE, 'v', */
MODE_PRIVATE, 'p',
MODE_ACCESS, 'a',
0x0, 0x0
};
- unsigned int add;
+ ulong64 add;
int i, bufpos = 0, len;
- int *flag_p;
+ ulong64 *flag_p;
char *key = 0, limitbuf[20], accessbuf[20];
char *apass = 0, *upass = 0, *altchan = 0;
* @param flag_p ?
*/
static void
-mode_parse_limit(struct ParseState *state, int *flag_p)
+mode_parse_limit(struct ParseState *state, ulong64 *flag_p)
{
unsigned int t_limit;
static void
-mode_parse_access(struct ParseState *state, int *flag_p)
+mode_parse_access(struct ParseState *state, ulong64 *flag_p)
{
unsigned int t_access;
static void
-mode_parse_altchan(struct ParseState *state, int *flag_p)
+mode_parse_altchan(struct ParseState *state, ulong64 *flag_p)
{
char *t_str;
}
static void
-mode_parse_quarantine(struct ParseState *state, int *flag_p)
+mode_parse_quarantine(struct ParseState *state, ulong64 *flag_p)
{
}
* Helper function to convert keys
*/
static void
-mode_parse_key(struct ParseState *state, int *flag_p)
+mode_parse_key(struct ParseState *state, ulong64 *flag_p)
{
char *t_str;
* Helper function to convert user passes
*/
static void
-mode_parse_upass(struct ParseState *state, int *flag_p)
+mode_parse_upass(struct ParseState *state, ulong64 *flag_p)
{
char *t_str;
* Helper function to convert admin passes
*/
static void
-mode_parse_apass(struct ParseState *state, int *flag_p)
+mode_parse_apass(struct ParseState *state, ulong64 *flag_p)
{
struct Membership *memb;
char *t_str;
/* Removes MODE_WASDELJOINS in a channel.
* Reveals all hidden users.
*/
-static void reveal_hidden_chan_users(struct ParseState *state, int *flag_p) {
+static void reveal_hidden_chan_users(struct ParseState *state, ulong64 *flag_p) {
struct Membership *member;
/* If the channel is not +d, do nothing. */
* Helper function to convert bans
*/
static void
-mode_parse_ban(struct ParseState *state, int *flag_p)
+mode_parse_ban(struct ParseState *state, ulong64 *flag_p)
{
char *t_str, *s;
struct Ban *ban, *newban;
* Helper function to process client changes
*/
static void
-mode_parse_client(struct ParseState *state, int *flag_p)
+mode_parse_client(struct ParseState *state, ulong64 *flag_p)
{
char *t_str;
char *colon;
* Helper function to process the simple modes
*/
static void
-mode_parse_mode(struct ParseState *state, int *flag_p)
+mode_parse_mode(struct ParseState *state, ulong64 *flag_p)
{
/* If they're not an oper, they can't change modes */
if (state->flags & (MODE_PARSE_NOTOPER | MODE_PARSE_NOTMEMBER)) {
struct Channel *chptr, int parc, char *parv[], unsigned int flags,
struct Membership* member)
{
- static int chan_flags[] = {
+ static ulong64 chan_flags[] = {
MODE_CHANOP, 'o',
MODE_VOICE, 'v',
MODE_PRIVATE, 'p',
0x0, 0x0
};
int i;
- int *flag_p;
- unsigned int t_mode;
+ ulong64 *flag_p;
+ ulong64 t_mode;
char *modestr;
struct ParseState state;