Log message:
Fixed /who server.name for non-opers (matchsel default included
WHO_FIELD_SER, *sigh*)
(pullup from u2_10_11 branch)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@749
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2002-04-19 Alex Badea <vampire@p16.pub.ro>
+
+ * ircd/m_who.c (m_who): disallow non-opers to /who server.name
+
2002-04-18 Alex Badea <vampire@p16.pub.ro>
* ircd/s_err.c (RPL_STATSILINE): connection classes are now
continue;
case 's':
case 'S':
-#ifdef HEAD_IN_SAND_WHO_SERVERNAME
- if (IsAnOper(sptr))
-#endif
- matchsel |= WHO_FIELD_SER;
+ matchsel |= WHO_FIELD_SER;
continue;
case 'r':
case 'R':
break;
case 's':
case 'S':
-#ifdef HEAD_IN_SAND_WHO_SERVERNAME
- if (IsAnOper(sptr))
-#endif
- fields |= WHO_FIELD_SER;
+ fields |= WHO_FIELD_SER;
break;
case 't':
case 'T':
if (!fields)
counter = 7;
+#ifdef HEAD_IN_SAND_WHO_SERVERNAME
+ if (!IsAnOper(sptr))
+ matchsel &= ~WHO_FIELD_SER;
+#endif
+
if (qrt && (fields & WHO_FIELD_QTY))
{
p = qrt;