summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-26 15:12:10 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-05-26 15:12:10 +0000
commit39e959a0d15c68197289310f1588f263648b01e2 (patch)
treed113f8d580cbaf1e5753ccd6a23b25893a04002e /modules
parentf21b47b2c704205f8e9a1ae06076a846f7707738 (diff)
- m_version.c: removed confopts(). Configuration options can be seen in /info
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2121 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r--modules/m_version.c43
1 files changed, 3 insertions, 40 deletions
diff --git a/modules/m_version.c b/modules/m_version.c
index b534c0f..d9e689a 100644
--- a/modules/m_version.c
+++ b/modules/m_version.c
@@ -36,7 +36,6 @@
/* Option string. */
static const char serveropts[] = {
- ' ',
'T',
'S',
#ifdef TS_CURRENT
@@ -49,42 +48,6 @@ static const char serveropts[] = {
'\0'
};
-/* confopts()
- *
- * input - client pointer
- * output - ircd.conf option string
- * side effects - none
- */
-static char *
-confopts(struct Client *source_p)
-{
- static char result[12];
- char *p = result;
-
- *p++ = 'e'; /* excepts */
-
- if (ConfigFileEntry.glines)
- *p++ = 'G';
- *p++ = 'g';
-
- /* might wanna hide this :P */
- if (ServerInfo.hub &&
- (!ConfigFileEntry.disable_remote || HasUMode(source_p, UMODE_OPER)))
- *p++ = 'H';
-
- *p++ = 'I'; /* invex */
- *p++ = 'K'; /* knock */
- *p++ = 'M';
-
- if (ConfigFileEntry.ignore_bogus_ts)
- *p++ = 'T';
- *p++ = '6';
-
- *p = '\0';
-
- return result;
-}
-
/*
* m_version - VERSION command handler
* parv[0] = sender prefix
@@ -113,7 +76,7 @@ m_version(struct Client *client_p, struct Client *source_p,
sendto_one(source_p, form_str(RPL_VERSION), me.name,
source_p->name, ircd_version, serno,
- me.name, confopts(source_p), serveropts);
+ me.name, serveropts);
show_isupport(source_p);
}
@@ -133,7 +96,7 @@ mo_version(struct Client *client_p, struct Client *source_p,
sendto_one(source_p, form_str(RPL_VERSION), me.name,
source_p->name, ircd_version, serno,
- me.name, confopts(source_p), serveropts);
+ me.name, serveropts);
show_isupport(source_p);
}
@@ -154,7 +117,7 @@ ms_version(struct Client *client_p, struct Client *source_p,
ID_or_name(&me, client_p),
ID_or_name(source_p, client_p),
ircd_version, serno,
- me.name, confopts(source_p), serveropts);
+ me.name, serveropts);
show_isupport(source_p);
}