Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-08-14 03:56:56 UTC

Modified files:
  Tag: u2_10_12_branch
     ircd/s_user.c ChangeLog

Log message:

Move whisper()'s away message checking to the cprivmsg path.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.201 ircu2.10/ChangeLog:1.710.2.202
--- ircu2.10/ChangeLog:1.710.2.201      Mon Aug 13 20:54:48 2007
+++ ircu2.10/ChangeLog  Mon Aug 13 20:56:46 2007
@@ -1,5 +1,10 @@
 2007-08-13  Michael Poole <[EMAIL PROTECTED]>
 
+       * ircd/s_user.c (whipser): CNOTICEs should not trigger away
+       messages, only CPRIVMSGs.
+
+2007-08-13  Michael Poole <[EMAIL PROTECTED]>
+
        * ircd/m_who.c (m_who): Reorder responses and change the
        ERR_QUERYTOOLONG parameter to be consistent with m_whois().
        
Index: ircu2.10/ircd/s_user.c
diff -u ircu2.10/ircd/s_user.c:1.99.2.9 ircu2.10/ircd/s_user.c:1.99.2.10
--- ircu2.10/ircd/s_user.c:1.99.2.9     Mon Aug 13 20:04:05 2007
+++ ircu2.10/ircd/s_user.c      Mon Aug 13 20:56:46 2007
@@ -22,7 +22,7 @@
  */
 /** @file
  * @brief Miscellaneous user-related helper functions.
- * @version $Id: s_user.c,v 1.99.2.9 2007/08/14 03:04:05 entrope Exp $
+ * @version $Id: s_user.c,v 1.99.2.10 2007/08/14 03:56:46 entrope Exp $
  */
 #include "config.h"
 
@@ -796,12 +796,14 @@
   if (is_silenced(source, dest))
     return 0;
           
-  if (cli_user(dest)->away)
-    send_reply(source, RPL_AWAY, cli_name(dest), cli_user(dest)->away);
   if (is_notice)
     sendcmdto_one(source, CMD_NOTICE, dest, "%C :%s", dest, text);
   else
+  {
+    if (cli_user(dest)->away)
+      send_reply(source, RPL_AWAY, cli_name(dest), cli_user(dest)->away);
     sendcmdto_one(source, CMD_PRIVATE, dest, "%C :%s", dest, text);
+  }
   return 0;
 }
 
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to