diff options
author | atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b <atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-14 17:06:24 +0000 |
---|---|---|
committer | atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b <atoledo atoledo@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-14 17:06:24 +0000 |
commit | 770435f404e084997b04d49d662de84e93e0907b (patch) | |
tree | f92449ffe9a1290c93ba8b453380bd886f5095b8 | |
parent | bcefbd73b1226c3b10e9ae24b2f0ccb50eb2c936 (diff) |
BUILD : 1.7.2 (100) BUGS : 52 NOTES : Fixed a bug with globals containing format characters
git-svn-id: svn://svn.anope.org/anope/trunk@100 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@76 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | init.c | 2 | ||||
-rw-r--r-- | operserv.c | 16 | ||||
-rw-r--r-- | version.log | 6 |
4 files changed, 15 insertions, 10 deletions
@@ -1,6 +1,7 @@ Anope Version 1.7.x (will be renamed when next release is produced) ------------------- Provided by Anope Dev. <dev@anope.org> +2004/05/14 Fixed a bug with globals containing format characters ( #52 ) 2004/05/14 Fixed a tiny type in HostServ help ( #51 ) 2004/05/12 Fixed missing RANDOMNEWS entry on /OS HELP ( #40 ) 2004/05/12 Fixed xOP management inconsistency ( #38 ) @@ -891,7 +891,7 @@ int init(int ac, char **av) /* Write the StartGlobal */ if (GlobalOnCycle) { if (GlobalOnCycleUP) - oper_global(NULL, GlobalOnCycleUP); + oper_global(NULL, "%s", GlobalOnCycleUP); } /* Success! */ diff --git a/operserv.c b/operserv.c index b4d84f959..d050ec089 100644 --- a/operserv.c +++ b/operserv.c @@ -1025,7 +1025,7 @@ static int do_global(User * u) } if (WallOSGlobal) wallops(s_OperServ, "\2%s\2 just used GLOBAL command.", u->nick); - oper_global(u->nick, msg); + oper_global(u->nick, "%s", msg); return MOD_CONT; } @@ -4577,7 +4577,7 @@ static int do_os_quit(User * u) sprintf(quitmsg, "QUIT command received from %s", u->nick); if (GlobalOnCycle) { - oper_global(NULL, GlobalOnCycleMessage); + oper_global(NULL, "%s", GlobalOnCycleMessage); } quitting = 1; return MOD_CONT; @@ -4594,7 +4594,7 @@ static int do_shutdown(User * u) sprintf(quitmsg, "SHUTDOWN command received from %s", u->nick); if (GlobalOnCycle) { - oper_global(NULL, GlobalOnCycleMessage); + oper_global(NULL, "%s", GlobalOnCycleMessage); } save_data = 1; delayed_quit = 1; @@ -4613,7 +4613,7 @@ static int do_restart(User * u) sprintf(quitmsg, "RESTART command received from %s", u->nick); if (GlobalOnCycle) { - oper_global(NULL, GlobalOnCycleMessage); + oper_global(NULL, "%s", GlobalOnCycleMessage); } /* raise(SIGHUP); */ do_restart_services(); @@ -4749,7 +4749,7 @@ static int do_defcon(User * u) the Admin would like to add. Set in config file. */ if (GlobalOnDefcon) { if ((DefConLevel == 5) && (DefConOffMessage)) { - oper_global(NULL, DefConOffMessage); + oper_global(NULL, "%s", DefConOffMessage); } else { oper_global(NULL, langglobal, DefConLevel); } @@ -4757,7 +4757,7 @@ static int do_defcon(User * u) if (GlobalOnDefconMore) { if ((DefConOffMessage) && DefConLevel == 5) { } else { - oper_global(NULL, DefconMessage); + oper_global(NULL, "%s", DefconMessage); } } /* Run any defcon functions, e.g. FORCE CHAN MODE */ @@ -4839,14 +4839,14 @@ void resetDefCon(int level) s_OperServ, level); if (GlobalOnDefcon) { if (DefConOffMessage) { - oper_global(NULL, DefConOffMessage); + oper_global(NULL, "%s", DefConOffMessage); } else { oper_global(NULL, getstring(NULL, DEFCON_GLOBAL), DefConLevel); } } if (GlobalOnDefconMore && !DefConOffMessage) { - oper_global(NULL, DefconMessage); + oper_global(NULL, "%s", DefconMessage); } runDefCon(); } diff --git a/version.log b/version.log index a63ad98d1..234622712 100644 --- a/version.log +++ b/version.log @@ -8,11 +8,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="2" -VERSION_BUILD="99" +VERSION_BUILD="100" VERSION_EXTRA="" # $Log$ # +# BUILD : 1.7.2 (100) +# BUGS : 52 +# NOTES : Fixed a bug with globals containing format characters +# # BUILD : 1.7.2 (99) # BUGS : none # NOTES : Removed lang/index since it is auto-generated upon compilation. |