+/* SET OPERHOST */
+static void
+quote_operhost(struct Client *source_p, const char *arg, int newval)
+{
+ if(EmptyString(arg))
+ {
+ sendto_one_notice(source_p, ":OPERHOST is currently '%s'", GlobalSetOptions.operhost);
+ }
+ else if(!valid_hostname(arg))
+ {
+ sendto_one_notice(source_p, "Invalid hostmask.");
+ }
+ else
+ {
+ rb_strlcpy(GlobalSetOptions.operhost, arg,
+ sizeof(GlobalSetOptions.operhost));
+
+ sendto_realops_snomask(SNO_GENERAL, L_ALL,
+ "%s has changed OPERHOST to '%s'",
+ get_oper_name(source_p), arg);
+ }
+}
+