summaryrefslogtreecommitdiff
path: root/zwgc/zwgc.desc
diff options
context:
space:
mode:
authorGravatar Kenneth G Raeburn <raeburn@mit.edu>1990-11-16 11:09:39 +0000
committerGravatar Kenneth G Raeburn <raeburn@mit.edu>1990-11-16 11:09:39 +0000
commit7a1b2391283ffd08543e5e2666f55a63f27b2daf (patch)
treecc48024cb7733dd45cd59164465c41549021dad0 /zwgc/zwgc.desc
parentb868dc2ae18b322907eff12108b42acdb54a1bda (diff)
Discard pings on all messages, rather than just class "message".
Diffstat (limited to 'zwgc/zwgc.desc')
-rw-r--r--zwgc/zwgc.desc8
1 files changed, 6 insertions, 2 deletions
diff --git a/zwgc/zwgc.desc b/zwgc/zwgc.desc
index e8e0da8..a8b2e8a 100644
--- a/zwgc/zwgc.desc
+++ b/zwgc/zwgc.desc
@@ -10,6 +10,12 @@
#
# Default WindowGram description file
#
+
+# Opcode "ping" is used by sender programs to see if the message would
+# really get sent, or if the recipient has logged out. No useful
+# information is normally contained in these messages, so we discard them.
+if (upcase($opcode) == "PING") then exit endif
+
#
# AUTHENTICATION information
#
@@ -83,8 +89,6 @@ match "WG_CTL_CLASS"
# put
# exit
match "message"
- if (upcase($opcode) == "PING") then exit endif
-
case $instance
match "PERSONAL"
set type = "Personal"