summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-09 00:48:39 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-09 00:48:39 +0000
commitb9d62796920a4fde698af1beee0919fdb13dd59a (patch)
treee75a78115da6cc66940fe2180d39ad9ed2d6c3f9 /src/modules.c
parenta9fd3fd828ab7b717cb7676f3a9e881b02a05743 (diff)
UseTokens needs to die in a fire, don't let it be turned off.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1605 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c29
1 files changed, 4 insertions, 25 deletions
diff --git a/src/modules.c b/src/modules.c
index bb7bc8668..8a37d3eb8 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -221,11 +221,6 @@ int protocol_module_init(void)
* as we only have the ircd struct filled here, we have to over
* here. -GD
*/
- if (UseTokens && !(ircd->token)) {
- alog("Anope does not support TOKENS for this ircd setting; unsetting UseToken");
- UseTokens = 0;
- }
-
if (UseTS6 && !(ircd->ts6)) {
alog("Chosen IRCd does not support TS6, unsetting UseTS6");
UseTS6 = 0;
@@ -1277,21 +1272,9 @@ Message *findMessage(MessageHash * msgTable[], const char *name)
idx = CMD_HASH(name);
for (current = msgTable[idx]; current; current = current->next) {
- if (UseTokens) {
- if (ircd->tokencaseless) {
- if (stricmp(name, current->name) == 0) {
- return current->m;
- }
- } else {
- if (strcmp(name, current->name) == 0) {
- return current->m;
- }
- }
- } else {
- if (stricmp(name, current->name) == 0) {
- return current->m;
- }
- }
+ if (stricmp(name, current->name) == 0) {
+ return current->m;
+ }
}
return NULL;
}
@@ -1321,11 +1304,7 @@ int addMessage(MessageHash * msgTable[], Message * m, int pos)
index = CMD_HASH(m->name);
for (current = msgTable[index]; current; current = current->next) {
- if ((UseTokens) && (!ircd->tokencaseless)) {
- match = strcmp(m->name, current->name);
- } else {
- match = stricmp(m->name, current->name);
- }
+ match = stricmp(m->name, current->name);
if (match == 0) { /* the msg exist's we are a addHead */
if (pos == 1) {
m->next = current->m;