summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-04 23:19:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-04 23:19:13 +0000
commitc5ad0a19cbf86510fc0b75ac96ea9d57598da91f (patch)
tree907fb3df668dee5cdbc878738b9eae8fb691242b /src/inspircd.cpp
parentdf37353f41c864b090c15db9f795ebfe7b8092bf (diff)
Fixed a bug in servermode handling where the target is a channel, found by ChroNiCk
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@382 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 3b9835f67..72b965741 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2660,7 +2660,11 @@ void server_mode(char **parameters, int pcnt, userrec *user)
dest = Find(parameters[0]);
- log(DEBUG,"server_mode on %s",dest->nick);
+ // fix: ChroNiCk found this - we cant use this as debug if its null!
+ if (dest)
+ {
+ log(DEBUG,"server_mode on %s",dest->nick);
+ }
if ((dest) && (pcnt > 1))
{