1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 10:43:13 +02:00

Added vhost::swhois

This commit is contained in:
codemastr
2002-08-25 16:10:09 +00:00
4 changed files with 15 additions and 1 deletions
+2
View File
@@ -1558,3 +1558,5 @@ seen. gmtime warning still there
- Fixed problem where SSL handshakes weren't unknown--'ed on remove reported
by Alzirr
- Compile fix regarding above fix
- Added vhost::swhois requested by FrostByghte (#0000171)
+1 -1
View File
@@ -965,7 +965,7 @@ struct _configitem_vhost {
ConfigItem *prev, *next;
ConfigFlag flag;
ConfigItem *from;
char *login, *virthost, *virtuser;
char *login, *virthost, *virtuser, *swhois;
anAuthStruct *auth;
};
+8
View File
@@ -182,6 +182,14 @@ int m_vhost(aClient *cptr, aClient *sptr, int parc, char *parv[])
"%s", vhost->virthost);
sendto_one(sptr, ":%s MODE %s :+tx",
sptr->name, sptr->name);
if (vhost->swhois) {
if (sptr->user->swhois)
MyFree(sptr->user->swhois);
sptr->user->swhois = MyMalloc(strlen(vhost->swhois) +1);
strcpy(sptr->user->swhois, vhost->swhois);
sendto_serv_butone_token(cptr, sptr->name,
MSG_SWHOIS, TOK_SWHOIS, "%s :%s", sptr->name, vhost->swhois);
}
sendto_one(sptr,
":%s NOTICE %s :*** Your vhost is now %s%s%s",
me.name, sptr->name, vhost->virtuser ? vhost->virtuser : "",
+4
View File
@@ -1941,6 +1941,10 @@ int _conf_vhost(ConfigFile *conf, ConfigEntry *ce)
vhost->virthost = strdup(host);
}
}
else if (!stricmp(cep->ce_varname, "swhois"))
{
vhost->swhois = strdup(cep->ce_vardata);
}
else if (!strcmp(cep->ce_varname, "from"))
{
for (cepp = cep->ce_entries; cepp; cepp = cepp->ce_next)