summaryrefslogtreecommitdiff
path: root/operserv.c
diff options
context:
space:
mode:
authoratoledo 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
committeratoledo 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
commit770435f404e084997b04d49d662de84e93e0907b (patch)
treef92449ffe9a1290c93ba8b453380bd886f5095b8 /operserv.c
parentbcefbd73b1226c3b10e9ae24b2f0ccb50eb2c936 (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
Diffstat (limited to 'operserv.c')
-rw-r--r--operserv.c16
1 files changed, 8 insertions, 8 deletions
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();
}