From c5ad0a19cbf86510fc0b75ac96ea9d57598da91f Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 4 Apr 2004 23:19:13 +0000 Subject: 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 --- src/inspircd.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/inspircd.cpp') 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)) { -- cgit v1.2.3