summaryrefslogtreecommitdiff
path: root/src/ultimate2.c
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-03-07 01:56:32 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-03-07 01:56:32 +0000
commit84a39def3dcd8d7c7a7cc45e7b7a07fe6c56060a (patch)
tree4b7c5feb9ecd0890c066dfe4ff24098d8d203804 /src/ultimate2.c
parentcd81294abfbab9d5ba070938265b0ac21cc15241 (diff)
BUILD : 1.7.8 (602) BUGS : 308, 311 NOTES : Fixed a couple of bugs, some smelling errors, and only in debug will nonexistent warnings display
git-svn-id: svn://svn.anope.org/anope/trunk@602 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@450 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/ultimate2.c')
-rw-r--r--src/ultimate2.c23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/ultimate2.c b/src/ultimate2.c
index 99292199e..ad72972c7 100644
--- a/src/ultimate2.c
+++ b/src/ultimate2.c
@@ -454,7 +454,9 @@ int anope_event_setname(char *source, int ac, char **av)
u = finduser(source);
if (!u) {
- alog("user: SETNAME for nonexistent user %s", source);
+ if (debug) {
+ alog("user: SETNAME for nonexistent user %s", source);
+ }
return MOD_CONT;
}
@@ -471,7 +473,9 @@ int anope_event_chgname(char *source, int ac, char **av)
u = finduser(av[0]);
if (!u) {
- alog("user: CHGNAME for nonexistent user %s", av[0]);
+ if (debug) {
+ alog("user: CHGNAME for nonexistent user %s", av[0]);
+ }
return MOD_CONT;
}
@@ -488,7 +492,9 @@ int anope_event_setident(char *source, int ac, char **av)
u = finduser(source);
if (!u) {
- alog("user: SETIDENT for nonexistent user %s", source);
+ if (debug) {
+ alog("user: SETIDENT for nonexistent user %s", source);
+ }
return MOD_CONT;
}
@@ -505,7 +511,9 @@ int anope_event_chgident(char *source, int ac, char **av)
u = finduser(av[0]);
if (!u) {
- alog("user: CHGIDENT for nonexistent user %s", av[0]);
+ if (debug) {
+ alog("user: CHGIDENT for nonexistent user %s", av[0]);
+ }
return MOD_CONT;
}
@@ -522,8 +530,9 @@ int anope_event_sethost(char *source, int ac, char **av)
u = finduser(source);
if (!u) {
- if (debug)
+ if (debug) {
alog("user: SETHOST for nonexistent user %s", source);
+ }
return MOD_CONT;
}
@@ -558,7 +567,9 @@ int anope_event_chghost(char *source, int ac, char **av)
u = finduser(av[0]);
if (!u) {
- alog("user: CHGHOST for nonexistent user %s", av[0]);
+ if (debug) {
+ alog("user: CHGHOST for nonexistent user %s", av[0]);
+ }
return MOD_CONT;
}