summaryrefslogtreecommitdiff
path: root/src/channels.c
diff options
context:
space:
mode:
authorjantje_85 <jantje_85@5417fbe8-f217-4b02-8779-1006273d7864>2009-08-04 18:14:50 +0000
committerjantje_85 <jantje_85@5417fbe8-f217-4b02-8779-1006273d7864>2009-08-04 18:14:50 +0000
commit7c2db57965760cf3f4fcab09b7c37e74cd26c945 (patch)
treeb4095d256bad0a4994aab8baa2c670390114f25a /src/channels.c
parentb13836f3cf35f752bee09029528204c8c40c8da8 (diff)
Fixed possible segfault introduced by TS6 fix in rev. 2401.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2406 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/channels.c')
-rw-r--r--src/channels.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/channels.c b/src/channels.c
index 2e086e54f..4b6dd0e8b 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -249,9 +249,10 @@ void chan_set_modes(const char *source, Channel * chan, int ac, char **av,
if (!user) user = finduser(*av);
} else
user = finduser(*av);
- if (!user && debug) {
- alog("debug: MODE %s %c%c for nonexistent user %s",
- chan->name, (add ? '+' : '-'), mode, *av);
+ if (!user) {
+ if (debug)
+ alog("debug: MODE %s %c%c for nonexistent user %s",
+ chan->name, (add ? '+' : '-'), mode, *av);
continue;
}