Finish adding custom operstring support.
This commit is contained in:
parent
6d1f5fcc73
commit
32d464fe77
|
@ -1,6 +1,5 @@
|
||||||
Todo list for ShadowIRCd 6.0
|
Todo list for ShadowIRCd 6.0
|
||||||
-----------------------------
|
-----------------------------
|
||||||
* custom operstrings
|
|
||||||
* norepeat cmode
|
* norepeat cmode
|
||||||
* kicknorejoin (+J in inspircd chmode)
|
* kicknorejoin (+J in inspircd chmode)
|
||||||
* Anything else we think of between now and release. :P
|
* Anything else we think of between now and release. :P
|
||||||
|
|
|
@ -318,6 +318,9 @@ single_whois(struct Client *source_p, struct Client *target_p, int operspy)
|
||||||
|
|
||||||
if(IsOper(target_p))
|
if(IsOper(target_p))
|
||||||
{
|
{
|
||||||
|
if(md = user_metadata_find(target_p, "OPERSTRING"))
|
||||||
|
sendto_one_numeric(source_p, 313, "%s :%s", target_p->name, md->value);
|
||||||
|
else
|
||||||
sendto_one_numeric(source_p, RPL_WHOISOPERATOR, form_str(RPL_WHOISOPERATOR),
|
sendto_one_numeric(source_p, RPL_WHOISOPERATOR, form_str(RPL_WHOISOPERATOR),
|
||||||
target_p->name,
|
target_p->name,
|
||||||
IsService(target_p) ? ConfigFileEntry.servicestring :
|
IsService(target_p) ? ConfigFileEntry.servicestring :
|
||||||
|
|
|
@ -1340,6 +1340,9 @@ oper_up(struct Client *source_p, struct oper_conf *oper_p)
|
||||||
if(oper_p->swhois)
|
if(oper_p->swhois)
|
||||||
user_metadata_add(source_p, "SWHOIS", oper_p->swhois, 1);
|
user_metadata_add(source_p, "SWHOIS", oper_p->swhois, 1);
|
||||||
|
|
||||||
|
if(oper_p->operstring)
|
||||||
|
user_metadata_add(source_p, "OPERSTRING", oper_p->operstring, 1);
|
||||||
|
|
||||||
if(oper_p->vhost || !EmptyString(ConfigFileEntry.default_operhost))
|
if(oper_p->vhost || !EmptyString(ConfigFileEntry.default_operhost))
|
||||||
{
|
{
|
||||||
if(oper_p->vhost)
|
if(oper_p->vhost)
|
||||||
|
|
Loading…
Reference in New Issue