Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/modules.c @ 1755:84487d78d0ea
Add a warning when using /module info with no module name
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 13 Mar 2010 11:57:32 +0100 |
parents | 7ee390513463 |
children | 5b497046df40 |
comparison
equal
deleted
inserted
replaced
1754:d8442bcb33b7 | 1755:84487d78d0ea |
---|---|
348 { | 348 { |
349 GSList *lmod; | 349 GSList *lmod; |
350 loaded_module_t *module; | 350 loaded_module_t *module; |
351 module_info_t *info; | 351 module_info_t *info; |
352 | 352 |
353 if (!name || !name[0]) { | |
354 scr_LogPrint(LPRINT_NORMAL, "Please specify a module name."); | |
355 return; | |
356 } | |
357 | |
353 lmod = g_slist_find_custom(loaded_modules, name, module_list_comparator); | 358 lmod = g_slist_find_custom(loaded_modules, name, module_list_comparator); |
354 if (!lmod) { | 359 if (!lmod) { |
355 scr_LogPrint(LPRINT_NORMAL, "Module %s not found.", name); | 360 scr_LogPrint(LPRINT_NORMAL, "Module %s not found.", name); |
356 return; | 361 return; |
357 } | 362 } |