diff options
author | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-03 23:42:20 +0000 |
---|---|---|
committer | adam- <adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-08-03 23:42:20 +0000 |
commit | 0d7e0274a4e10bcd2b9410d907ff3fec9202d336 (patch) | |
tree | 1ebf9d5a4a55f91db6a4de89dd19be4c3da6836b | |
parent | b8b891cc25f5a5af6543ed317d76f3d88cf31f3b (diff) |
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
-rw-r--r-- | src/protocol/ratbox.c | 3 |
1 files changed, 2 insertions, 1 deletions
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+"); |