Changeset 3ef779b
- Timestamp:
- May 26, 2009, 10:32:00 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 1e550b2
- Parents:
- 7451af9
- git-author:
- Alexander W Dehnert <adehnert@mit.edu> (05/25/09 20:19:00)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (05/26/09 22:32:00)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
r7451af9 r3ef779b 719 719 #endif 720 720 721 void send_ping(char *to )722 { 723 #ifdef HAVE_LIBZEPHYR 724 send_zephyr("PING", "", "MESSAGE", "PERSONAL", to, "");721 void send_ping(char *to, char *zclass, char *zinstance) 722 { 723 #ifdef HAVE_LIBZEPHYR 724 send_zephyr("PING", "", zclass, zinstance, to, ""); 725 725 #endif 726 726 } … … 772 772 tmp = short_zuser(retnotice->z_recipient); 773 773 owl_function_error("%s: Not logged in or subscribing.", tmp); 774 if(strcmp(retnotice->z_class, "message")) { 774 /* 775 * These error messages are often over 80 chars, but users who want to 776 * see the whole thing can scroll to the side, and for those with wide 777 * terminals or who don't care, not splitting saves a line in the UI 778 */ 779 if(strcasecmp(retnotice->z_class, "message")) { 775 780 snprintf(buff, BUFFLEN, 776 781 "Could not send message to %s: " 777 "not logged in or subscribing to class %s, instance %s.\n", 782 "not logged in or subscribing to class %s, instance %s.\n", 778 783 tmp, 779 784 retnotice->z_class, 785 retnotice->z_class_inst); 786 } else if(strcasecmp(retnotice->z_class_inst, "personal")) { 787 snprintf(buff, BUFFLEN, 788 "Could not send message to %s: " 789 "not logged in or subscribing to instance %s.\n", 790 tmp, 780 791 retnotice->z_class_inst); 781 792 } else { -
zwrite.c
r4b17a6c r3ef779b 199 199 if (z->noping) return; 200 200 201 if (strcasecmp(z->class, "message") || 202 strcasecmp(z->inst, "personal")) { 201 if (strcasecmp(z->class, "message")) { 203 202 return; 204 203 } … … 213 212 to = owl_strdup(owl_list_get_element(&(z->recips), i)); 214 213 } 215 send_ping(to );214 send_ping(to, z->class, z->inst); 216 215 owl_free(to); 217 216 }
Note: See TracChangeset
for help on using the changeset viewer.