summaryrefslogtreecommitdiff
path: root/src/plexus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plexus.c')
-rw-r--r--src/plexus.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/plexus.c b/src/plexus.c
index 74124154a..06f1f0b70 100644
--- a/src/plexus.c
+++ b/src/plexus.c
@@ -636,8 +636,10 @@ int anope_event_topic(char *source, int ac, char **av)
time_t topic_time = time(NULL);
if (!c) {
- alog("channel: TOPIC %s for nonexistent channel %s",
- merge_args(ac - 1, av + 1), av[0]);
+ if (debug) {
+ alog("channel: TOPIC %s for nonexistent channel %s",
+ merge_args(ac - 1, av + 1), av[0]);
+ }
return MOD_CONT;
}
@@ -954,8 +956,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;
}