diff options
| author | Adam <Adam@Anope.org> | 2010-09-08 16:23:16 -0400 |
|---|---|---|
| committer | Adam <Adam@Anope.org> | 2010-09-08 16:23:16 -0400 |
| commit | f4a0ee30b30bf3ff8c5039f54aa04593fa58b0e3 (patch) | |
| tree | 1f327c4865bee2cbecd41bab3c2aec78f78ab232 /src/protocol/inspircd20.c | |
| parent | bd94cbc25b27250872ba4e682cf7af36e16a2d25 (diff) | |
Fixed Windows build
Diffstat (limited to 'src/protocol/inspircd20.c')
| -rw-r--r-- | src/protocol/inspircd20.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/protocol/inspircd20.c b/src/protocol/inspircd20.c index 330fc99fc..9efbdd3e2 100644 --- a/src/protocol/inspircd20.c +++ b/src/protocol/inspircd20.c @@ -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) |
