diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-03 21:59:38 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-03 21:59:38 +0000 |
commit | 30031e6ea5c583735508c03381cdd6e392ec9bed (patch) | |
tree | 1f44ccbd180e44ce0ecf1c49085de66b34ca5a5b /src | |
parent | 1886c72d7abc0fa3204efc27a285a3162fe19867 (diff) |
Correctly save Numeric to TS6SID.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1521 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/protocol/inspircd12.cpp | 9 | ||||
-rw-r--r-- | src/servers.c | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index b63a47df1..20647f997 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -145,7 +145,7 @@ IRCDVar myIrcd[] = { 0, /* Can remove User Channel Modes with SVSMODE */ 0, /* Sglines are not enforced until user reconnects */ "x", /* vhost char */ - 0, /* ts6 */ + 1, /* ts6 */ 1, /* support helper umode */ 0, /* p10 */ NULL, /* character set */ @@ -1283,11 +1283,12 @@ int AnopeInit(int argc, char **argv) { moduleAddAuthor("Anope"); - moduleAddVersion - ("$Id$"); + moduleAddVersion("$Id$"); moduleSetType(PROTOCOL); - pmodule_ircd_version("inspircdIRCd 1.1"); + TS6SID = sstrdup(Numeric); + + pmodule_ircd_version("InspIRCd 1.1"); pmodule_ircd_cap(myIrcdcap); pmodule_ircd_var(myIrcd); pmodule_ircd_cbmodeinfos(myCbmodeinfos); diff --git a/src/servers.c b/src/servers.c index 689595d1e..554ec9f67 100644 --- a/src/servers.c +++ b/src/servers.c @@ -608,7 +608,10 @@ void ts6_uid_increment(unsigned int slot) char *ts6_uid_retrieve(void) { if (UseTS6 == 0) + { + alog("TS6 disabled, returning nothing"); return ""; + } if (ts6_uid_initted != 1) ts6_uid_init(); |