Log message:
Hide server name for /who, too; allow users to see their own server name
in /whois. Changes still untested...
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@427
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2001-04-20 Kevin L. Mitchell <klmitch@mit.edu>
+
+ * ircd/m_whois.c (do_whois): display proper server name if the
+ user is looking up himself
+
+ * ircd/m_who.c (m_who): disable match by servername or display of
+ server names by non-opers
+
+ * include/ircd_policy.h: add define for
+ HEAD_IN_SAND_WHO_SERVERNAME to cover full intent of sub-motion 15
+ of CFV 165
+
2001-04-18 Kevin L. Mitchell <klmitch@mit.edu>
* ircd/s_conf.c: keep the $R in memory so we can see it clearly
2001-04-18 Kevin L. Mitchell <klmitch@mit.edu>
* ircd/s_conf.c: keep the $R in memory so we can see it clearly
*/
#define HEAD_IN_SAND_WHOIS_SERVERNAME
*/
#define HEAD_IN_SAND_WHOIS_SERVERNAME
+#define HEAD_IN_SAND_WHO_SERVERNAME
#endif /* INCLUDED_ircd_policy_h */
#endif /* INCLUDED_ircd_policy_h */
continue;
case 's':
case 'S':
continue;
case 's':
case 'S':
- matchsel |= WHO_FIELD_SER;
+#ifdef HEAD_IN_SAND_WHO_SERVERNAME
+ if (IsAnOper(sptr))
+#endif
+ matchsel |= WHO_FIELD_SER;
continue;
case 'r':
case 'R':
continue;
case 'r':
case 'R':
break;
case 's':
case 'S':
break;
case 's':
case 'S':
- fields |= WHO_FIELD_SER;
+#ifdef HEAD_IN_SAND_WHO_SERVERNAME
+ if (IsAnOper(sptr))
+#endif
+ fields |= WHO_FIELD_SER;
break;
case 't':
case 'T':
break;
case 't':
case 'T':
}
#ifdef HEAD_IN_SAND_WHOIS_SERVERNAME
}
#ifdef HEAD_IN_SAND_WHOIS_SERVERNAME
+ if (!IsOper(sptr) || sptr == a2cptr)
send_reply(sptr, RPL_WHOISSERVER, name, "*.undernet.org",
"The Undernet Underworld");
else
send_reply(sptr, RPL_WHOISSERVER, name, "*.undernet.org",
"The Undernet Underworld");
else