Revert miscommitted file from patch-73.
authorMichael Poole <mdpoole@troilus.org>
Sat, 23 Dec 2006 05:38:37 +0000 (05:38 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sat, 23 Dec 2006 05:38:37 +0000 (05:38 +0000)
src/proto-common.c: Revert accidentally committed patch.
git-archimport-id: srvx@srvx.net--2006/srvx--devo--1.3--patch-76

ChangeLog
src/proto-common.c

index 6c8476be317757254995e8de46a166cedbfed202..93a24a1456f4db186277c20fa47504730beb6473 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,19 @@
 # arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
 #
 
+2006-12-23 05:38:37 GMT        Michael Poole <mdpoole@troilus.org>     patch-76
+
+    Summary:
+      Revert miscommitted file from patch-73.
+    Revision:
+      srvx--devo--1.3--patch-76
+
+    src/proto-common.c: Revert accidentally committed patch.
+
+    modified files:
+     ChangeLog src/proto-common.c
+
+
 2006-12-23 05:37:07 GMT        Michael Poole <mdpoole@troilus.org>     patch-75
 
     Summary:
index f681a6ab1f86de7a87c56f1b5de346993d5e3ffa..a20e674f934601815f1df13da3be4fb3f69b1bdd 100644 (file)
@@ -439,9 +439,9 @@ privmsg_chan_helper(struct chanNode *cn, void *data)
     if ((mn = GetUserMode(cn, pd->user)))
         mn->idle_since = now;
 
-    if (cf->func && !pd->is_notice
-        && (GetUserMode(cn, cf->service) && !IsDeaf(cf->service)))
-        cf->func(pd->user, cn, pd->text+1, cf->service);
+    /* Never send a NOTICE to a channel to one of the services */
+    if (!pd->is_notice && cf->func
+        && ((cn->modes & MODE_REGISTERED) || GetUserMode(cn, cf->service)))
 
     /* This catches *all* text sent to the channel that the services server sees */
     for (x = 0; x < ALLCHANMSG_FUNCS_MAX; x++) {