1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 03:03:13 +02:00

Fixed Windows build

This commit is contained in:
Adam
2010-09-08 16:23:16 -04:00
parent bd94cbc25b
commit f4a0ee30b3
4 changed files with 18 additions and 18 deletions
+16 -2
View File
@@ -48,7 +48,21 @@ static int16 get_new_statusmode()
if (last_mode == CUS_DEOPPED)
last_mode = last_mode << 1; // get around CUS_DEOPPED
return last_mode;
};
}
uint32 get_mode_from_char(const char c)
{
struct chmodeinfo *p = chmodes;
while (p->modechar != 0)
{
if (p->modechar == c)
return p->mode;
++p;
}
return 0;
}
static char flood_mode_set[3];
static char flood_mode_unset[3];
@@ -233,7 +247,7 @@ char myCsmodes[128] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
static inline char sym_from_char(const char c)
static char sym_from_char(const char c)
{
int i;
for (i = 0; i < 128; ++i)
-14
View File
@@ -110,20 +110,6 @@ struct chmodeinfo
{0, 0}
};
inline uint32 get_mode_from_char(const char c)
{
struct chmodeinfo *p = chmodes;
while (p->modechar != 0)
{
if (p->modechar == c)
return p->mode;
++p;
}
return 0;
}
void inspircd_set_umode(User * user, int ac, char **av);
void inspircd_cmd_svsnoop(char *server, int set);
void inspircd_cmd_remove_akill(char *user, char *host);