summaryrefslogtreecommitdiff
path: root/zwgc/notice.c
diff options
context:
space:
mode:
authorGravatar Marc Horowitz <marc@mit.edu>1989-11-13 18:08:59 +0000
committerGravatar Marc Horowitz <marc@mit.edu>1989-11-13 18:08:59 +0000
commita6cba7020105cc5f5708976a16f18fbdd623959a (patch)
treec36161e03853cbff13035cf77769f201fd3f0be7 /zwgc/notice.c
parentfc1cf53336006fa659cc30088db7b653ab4dc63e (diff)
if the recipient field of the notice is "", $recipient will be set to
"*", not "".
Diffstat (limited to 'zwgc/notice.c')
-rw-r--r--zwgc/notice.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zwgc/notice.c b/zwgc/notice.c
index 9a18392..5dc52ac 100644
--- a/zwgc/notice.c
+++ b/zwgc/notice.c
@@ -13,7 +13,7 @@
*/
#if (!defined(lint) && !defined(SABER))
-static char rcsid_notice_c[] = "$Header$";
+static char rcsid_notice_c[] = "$Id$";
#endif
#include <zephyr/mit-copyright.h>
@@ -268,7 +268,8 @@ char *decode_notice(notice)
var_set_variable("instance", notice->z_class_inst);
var_set_variable("opcode", notice->z_opcode);
var_set_variable("default", notice->z_default_format);
- var_set_variable("recipient", notice->z_recipient);
+ var_set_variable("recipient",
+ (notice->z_recipient[0]?"*":notice->z_recipient);
var_set_variable("fullsender", notice->z_sender);
var_set_variable_to_number("port", (int)notice->z_port);
var_set_variable_then_free_value("kind", z_kind_to_ascii(notice->z_kind));