Changes in functions.c [007081e:06470d7]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r007081e r06470d7 871 871 void owl_function_loadsubs(const char *file) 872 872 { 873 int ret, ret2, ret3; 873 int ret, ret2; 874 const char *foo; 874 875 char *path; 875 876 … … 883 884 884 885 /* for backwards compatibility for now */ 885 ret2 = owl_zephyr_loaddefaultsubs(); 886 ret3 = owl_zephyr_loadbarnowldefaultsubs(); 886 ret2=owl_zephyr_loaddefaultsubs(); 887 887 888 888 if (!owl_context_is_interactive(owl_global_get_context(&g))) return; 889 889 890 if (ret == 0 && ret2 == 0 && ret3 == 0) { 890 foo=file?file:"file"; 891 if (ret==0 && ret2==0) { 891 892 if (!file) { 892 893 owl_function_makemsg("Subscribed to messages."); … … 894 895 owl_function_makemsg("Subscribed to messages from %s", file); 895 896 } 896 } else if (ret ==-1) {897 owl_function_error("Could not read %s", f ile ? file : "file");898 } else if (ret2 == -1){897 } else if (ret==-1) { 898 owl_function_error("Could not read %s", foo); 899 } else { 899 900 owl_function_error("Error subscribing to messages"); 900 } else {901 owl_function_error("Error subscribing to instanced personals");902 901 } 903 902 }
Note: See TracChangeset
for help on using the changeset viewer.