Changeset 09489b89 for stylefunc.c
- Timestamp:
- Jul 2, 2003, 6:15:24 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 373b7e7
- Parents:
- 7c9c847
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stylefunc.c
r778d0a9 r09489b89 9 9 void owl_stylefunc_basic(owl_fmtext *fm, owl_message *m) 10 10 { 11 #ifdef HAVE_LIBZEPHYR 11 12 char *body, *indent, *ptr, *zsigbuff, frombuff[LINE]; 12 13 ZNotice_t *n; 14 #endif 13 15 14 16 if (owl_message_is_type_zephyr(m) && owl_message_is_direction_in(m)) { 17 #ifdef HAVE_LIBZEPHYR 15 18 n=owl_message_get_notice(m); 16 19 17 20 /* get the body */ 18 21 body=owl_strdup(owl_message_get_body(m)); … … 31 34 strcpy(frombuff, owl_message_get_sender(m)); 32 35 ptr=strchr(frombuff, '@'); 33 if (ptr && !strncmp(ptr+1, ZGetRealm(), strlen(ZGetRealm()))) {36 if (ptr && !strncmp(ptr+1, owl_zephyr_get_realm(), strlen(owl_zephyr_get_realm()))) { 34 37 *ptr='\0'; 35 38 } … … 84 87 } 85 88 owl_fmtext_append_normal(fm, frombuff); 86 if (strcasecmp(owl_message_get_realm(m), ZGetRealm())) {89 if (strcasecmp(owl_message_get_realm(m), owl_zephyr_get_realm()) { 87 90 owl_fmtext_append_normal(fm, " {"); 88 91 owl_fmtext_append_normal(fm, owl_message_get_realm(m)); … … 112 115 owl_free(body); 113 116 owl_free(indent); 117 #endif 114 118 } else if (owl_message_is_type_zephyr(m) && owl_message_is_direction_out(m)) { 115 119 char *indent, *text, *zsigbuff, *foo; … … 200 204 void owl_stylefunc_default(owl_fmtext *fm, owl_message *m) 201 205 { 206 #ifdef HAVE_LIBZEPHYR 202 207 char *body, *indent, *ptr, *zsigbuff, frombuff[LINE]; 203 208 ZNotice_t *n; 209 #endif 204 210 205 211 if (owl_message_is_type_zephyr(m) && owl_message_is_direction_in(m)) { 212 #ifdef HAVE_LIBZEPHYR 206 213 n=owl_message_get_notice(m); 207 214 208 215 /* get the body */ 209 216 body=owl_malloc(strlen(owl_message_get_body(m))+30); … … 222 229 strcpy(frombuff, owl_message_get_sender(m)); 223 230 ptr=strchr(frombuff, '@'); 224 if (ptr && !strncmp(ptr+1, ZGetRealm(), strlen(ZGetRealm()))) {231 if (ptr && !strncmp(ptr+1, owl_zephyr_get_realm(), strlen(owl_zephyr_get_realm()))) { 225 232 *ptr='\0'; 226 233 } … … 254 261 } 255 262 owl_fmtext_append_normal(fm, " for "); 256 ptr=short_zuser( n->z_class_inst);263 ptr=short_zuser(owl_zephyr_get_instance(m)); 257 264 owl_fmtext_append_bold(fm, ptr); 258 265 owl_free(ptr); … … 276 283 owl_fmtext_append_normal(fm, "} "); 277 284 } 278 if ( n->z_opcode[0]!='\0') {285 if (strccmp(owl_zephyr_get_opcode(m), "")) { 279 286 owl_fmtext_append_normal(fm, " ["); 280 287 owl_fmtext_append_normal(fm, owl_message_get_opcode(m)); … … 304 311 owl_free(body); 305 312 owl_free(indent); 313 #endif 306 314 } else if (owl_message_is_type_zephyr(m) && owl_message_is_direction_out(m)) { 307 315 char *indent, *text, *zsigbuff, *foo; … … 395 403 char *baseformat="%s %-13.13s %-11.11s %-12.12s "; 396 404 char *sender, *recip; 405 #ifdef HAVE_LIBZEPHYR 397 406 ZNotice_t *n; 398 407 #endif 399 408 400 409 sender=short_zuser(owl_message_get_sender(m)); … … 402 411 403 412 if (owl_message_is_type_zephyr(m)) { 413 #ifdef HAVE_LIBZEPHYR 404 414 n=owl_message_get_notice(m); 405 415 … … 472 482 owl_free(sender); 473 483 owl_free(recip); 474 484 #endif 475 485 } else if (owl_message_is_type_aim(m)) { 476 486 owl_fmtext_append_spaces(fm, OWL_TAB);
Note: See TracChangeset
for help on using the changeset viewer.