- sendto_one_numeric(source_p, RPL_WHOISOPERATOR, form_str(RPL_WHOISOPERATOR),
- target_p->name,
- IsService(target_p) ? ConfigFileEntry.servicestring :
- (IsAdmin(target_p) ? GlobalSetOptions.adminstring :
- GlobalSetOptions.operstring));
+ 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),
+ target_p->name,
+ IsService(target_p) ? ConfigFileEntry.servicestring :
+ (IsAdmin(target_p) ? GlobalSetOptions.adminstring :
+ GlobalSetOptions.operstring));