Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-04-25 21:25:30 UTC

Modified files:
     ircd/m_whowas.c

Log message:

Fix core when oper /whowas's non-+x user.

---------------------- diff included ----------------------
Index: ircu2.10/ircd/m_whowas.c
diff -u ircu2.10/ircd/m_whowas.c:1.11 ircu2.10/ircd/m_whowas.c:1.12
--- ircu2.10/ircd/m_whowas.c:1.11       Tue Apr 19 17:59:24 2005
+++ ircu2.10/ircd/m_whowas.c    Mon Apr 25 14:25:20 2005
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_whowas.c,v 1.11 2005/04/20 00:59:24 entrope Exp $
+ * $Id: m_whowas.c,v 1.12 2005/04/25 21:25:20 entrope Exp $
  */
 
 /*
@@ -138,7 +138,7 @@
       {
        send_reply(sptr, RPL_WHOWASUSER, temp->name, temp->username,
                   temp->hostname, temp->realname);
-        if (IsAnOper(sptr) && ircd_strcmp(temp->hostname, temp->realhost))
+        if (IsAnOper(sptr) && temp->realhost)
           send_reply(sptr, RPL_WHOISACTUALLY, temp->name, temp->username, 
temp->realhost);
         send_reply(sptr, RPL_WHOISSERVER, temp->name,
                    (feature_bool(FEAT_HIS_WHOIS_SERVERNAME) && !IsOper(sptr)) ?
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to