diff options
Diffstat (limited to 'src/protocol/bahamut.c')
-rw-r--r-- | src/protocol/bahamut.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c index 0d6075c22..ff76c6df0 100644 --- a/src/protocol/bahamut.c +++ b/src/protocol/bahamut.c @@ -155,15 +155,15 @@ void bahamut_set_umode(User * user, int ac, char **av) while (*modes) { - /* This looks better, much better than "add ? (do_add) : (do_remove)". - * At least this is readable without paying much attention :) -GD - */ - if (add) - user->mode |= umodes[(int) *modes]; - else - user->mode &= ~umodes[(int) *modes]; - - switch (*modes++) { + /* This looks better, much better than "add ? (do_add) : (do_remove)". + * At least this is readable without paying much attention :) -GD + */ + if (add) + user->mode |= umodes[(int) *modes]; + else + user->mode &= ~umodes[(int) *modes]; + + switch (*modes++) { case '+': add = 1; break; @@ -1283,8 +1283,8 @@ int anope_event_away(char *source, int ac, char **av) if (!source) { return MOD_CONT; } - m_away(source, (ac ? av[0] : NULL)); - return MOD_CONT; + m_away(source, (ac ? av[0] : NULL)); + return MOD_CONT; } int anope_event_ping(char *source, int ac, char **av) @@ -1628,7 +1628,8 @@ int AnopeInit(int argc, char **argv) { moduleAddAuthor("Anope"); - moduleAddVersion("$Id$"); + moduleAddVersion + ("$Id$"); moduleSetType(PROTOCOL); pmodule_ircd_version("BahamutIRCd 1.4.*/1.8.*"); |