From 0d7e0274a4e10bcd2b9410d907ff3fec9202d336 Mon Sep 17 00:00:00 2001 From: adam- Date: Mon, 3 Aug 2009 23:42:20 +0000 Subject: [PATCH] Fix a crash in the ratbox protocol module when Numeric is not defined in the conf git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2403 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/ratbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index 261aeb031..ba560d115 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -1147,7 +1147,8 @@ class ProtoRatbox : public Module this->SetVersion("$Id$"); this->SetType(PROTOCOL); - TS6SID = sstrdup(Numeric); + if (Numeric) + TS6SID = sstrdup(Numeric); UseTSMODE = 1; /* TMODE */ pmodule_ircd_version("Ratbox IRCD 2.0+");