[912] in BarnOwl Developers
[D-O-H] r900 - trunk/owl
daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:11:03 2009
Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
To: dirty-owl-hackers@MIT.EDU
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Wed, 23 Jan 2008 23:20:14 -0500 (EST)
Author: nelhage
Date: 2008-01-23 23:20:12 -0500 (Wed, 23 Jan 2008)
New Revision: 900
Modified:
trunk/owl/zephyr.c
Log:
Fix the error messages sending to users who don't exist or aren't
signed on.
Modified: trunk/owl/zephyr.c
===================================================================
--- trunk/owl/zephyr.c 2008-01-23 03:41:58 UTC (rev 899)
+++ trunk/owl/zephyr.c 2008-01-24 04:20:12 UTC (rev 900)
@@ -574,15 +574,18 @@
char buff[BUFFLEN];
tmp = short_zuser(retnotice->z_recipient);
owl_function_error("%s: Not logged in or subscribing.", tmp);
- snprintf(buff, BUFFLEN, "Could not send message to %s: not logged in or subscribing to", tmp);
if(strcmp(retnotice->z_class, "message")) {
snprintf(buff, BUFFLEN,
- "%s class %s, instance %s.\n", buff,
+ "Could not send message to %s: "
+ "not logged in or subscribing to class %s, instance %s.\n",
+ tmp,
retnotice->z_class,
retnotice->z_class_inst);
} else {
snprintf(buff, BUFFLEN,
- "%s messages.\n", buff);
+ "Could not send message to %s: "
+ "not logged in or subscribing to messages.\n",
+ tmp);
}
owl_function_adminmsg("", buff);
owl_log_outgoing_zephyr_error(tmp, buff);