Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / m_who.c
index ecb27b4dc302e3a8239d1e6dbc7ebb5aaccd168f..a2d871853841b846b4686bd2e56be7e17d572f36 100644 (file)
@@ -210,7 +210,10 @@ int m_who(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
           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':
@@ -256,7 +259,10 @@ int m_who(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
             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':