summaryrefslogtreecommitdiff
path: root/zwgc/zwgc.desc
diff options
context:
space:
mode:
Diffstat (limited to 'zwgc/zwgc.desc')
-rw-r--r--zwgc/zwgc.desc18
1 files changed, 11 insertions, 7 deletions
diff --git a/zwgc/zwgc.desc b/zwgc/zwgc.desc
index 01a2e62..796eaf0 100644
--- a/zwgc/zwgc.desc
+++ b/zwgc/zwgc.desc
@@ -87,14 +87,18 @@ match "WG_CTL_CLASS"
# put
# exit
match "message"
- case $instance
- match "PERSONAL"
- set type = "Personal"
- match "URGENT"
- set type = "Urgent"
- default
+ if (downcase($recipient) == downcase($user)) then
+ case $instance
+ match "PERSONAL"
+ set type = "Personal"
+ match "URGENT"
+ set type = "Urgent"
+ default
+ set type = $instance
+ endcase
+ else
set type = "Instance "+$instance
- endcase
+ endif
fields signature body
if ($body == "") then