diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mail.c | 2 | ||||
-rw-r--r-- | src/protocol/inspircd20.c | 18 | ||||
-rw-r--r-- | src/protocol/inspircd20.h | 14 |
3 files changed, 17 insertions, 17 deletions
diff --git a/src/mail.c b/src/mail.c index 1e3109edd..590518e69 100644 --- a/src/mail.c +++ b/src/mail.c @@ -188,7 +188,7 @@ void MailEnd(MailInfo * mail) return; } -#ifdef HAVE_FORK +#if HAVE_FORK if (ForkForMail && !(pid = fork())) { pclose(mail->pipe); 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) diff --git a/src/protocol/inspircd20.h b/src/protocol/inspircd20.h index 24e3a930e..20aec2ec5 100644 --- a/src/protocol/inspircd20.h +++ b/src/protocol/inspircd20.h @@ -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); |