Mercurial > hg
comparison mcabber/mcabber/commands.c @ 2112:332818e5daa1
Display a warning when the /carbons parameter is wrong
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 11 May 2014 17:19:34 +0200 |
parents | 9023a6f2bf6c |
children | 8aa5e80aebce |
comparison
equal
deleted
inserted
replaced
2111:9023a6f2bf6c | 2112:332818e5daa1 |
---|---|
4160 scr_print_logwindow(arg); | 4160 scr_print_logwindow(arg); |
4161 } | 4161 } |
4162 | 4162 |
4163 static void do_carbons(char *arg) | 4163 static void do_carbons(char *arg) |
4164 { | 4164 { |
4165 if (!strcasecmp(arg, "info")) { | 4165 if (!strcasecmp(arg, "info") || !*arg) { |
4166 carbons_info(); | 4166 carbons_info(); |
4167 } else if (!strcasecmp(arg, "enable")) { | 4167 } else if (!strcasecmp(arg, "enable")) { |
4168 carbons_enable(); | 4168 carbons_enable(); |
4169 } else if (!strcasecmp(arg, "disable")) { | 4169 } else if (!strcasecmp(arg, "disable")) { |
4170 carbons_disable(); | 4170 carbons_disable(); |
4171 } else { | |
4172 scr_log_print(LPRINT_NORMAL, "Unrecognized parameter!"); | |
4171 } | 4173 } |
4172 } | 4174 } |
4173 | 4175 |
4174 /* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2: For Vim users... */ | 4176 /* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2: For Vim users... */ |