diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-16 01:26:47 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-16 01:26:47 +0000 |
commit | 1d45a53fa2344ae65587b54889b3d5a9300e1213 (patch) | |
tree | d47f4c2e9925e09172c74140d672948c64379ac4 /src/servers.c | |
parent | 61f2ce9a41acc6016b24da58005f9b779017d7d2 (diff) |
Remove UseTS6. This is now on or off at an ircd, not a config level. Move Chary to obsolete for now, it's identical to ratbox anyway in most regards, and it's getting annoying having to redo the same work twice..
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1740 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/servers.c')
-rw-r--r-- | src/servers.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/servers.c b/src/servers.c index 2de1d1489..d42e08108 100644 --- a/src/servers.c +++ b/src/servers.c @@ -409,7 +409,7 @@ void do_squit(const char *source, int ac, const char **av) char buf[BUFSIZE]; Server *s; - if (UseTS6 && ircd->ts6) { + if (ircd->ts6) { s = findserver_uid(servlist, av[0]); if (!s) { s = findserver(servlist, av[0]); @@ -592,16 +592,8 @@ static unsigned int ts6_uid_index = 9; /* last slot in uid buf */ void ts6_uid_init(void) { - /* check just in case... you can never be too safe. */ - if (TS6SID != NULL) { - snprintf(ts6_new_uid, 10, "%sAAAAAA", TS6SID); - ts6_uid_initted = 1; - } else { - alog("warning: no TS6SID specified, disabling TS6 support."); - UseTS6 = 0; - - return; - } + snprintf(ts6_new_uid, 10, "%sAAAAAA", TS6SID); + ts6_uid_initted = 1; } void ts6_uid_increment(unsigned int slot) @@ -625,17 +617,18 @@ void ts6_uid_increment(unsigned int slot) const char *ts6_uid_retrieve(void) { - if (UseTS6 == 0) + if (!ircd->ts6 == 0) { - alog("TS6 disabled, returning nothing"); + alog("TS6 not supported on this ircd"); return ""; } if (ts6_uid_initted != 1) - ts6_uid_init(); + { + throw CoreException("TS6 IRCd and ts6_uid_init() hasn't been called!"); + } ts6_uid_increment(ts6_uid_index - 1); - return ts6_new_uid; } |