comparison mcabber/src/commands.c @ 1592:1802b926e3fa

Display a warning when using /request while disconnected
author Mikael Berthe <mikael@lilotux.net>
date Tue, 06 Oct 2009 21:22:51 +0200
parents 5411897a1e7b
children a087125d8fc8
comparison
equal deleted inserted replaced
1591:44fef962f572 1592:1802b926e3fa
3112 "Please specify a query type (version, time...)."); 3112 "Please specify a query type (version, time...).");
3113 free_arg_lst(paramlst); 3113 free_arg_lst(paramlst);
3114 return; 3114 return;
3115 } 3115 }
3116 3116
3117 if (!jb_getonline()) {
3118 scr_LogPrint(LPRINT_NORMAL, "You are not connected.");
3119 free_arg_lst(paramlst);
3120 return;
3121 }
3122
3117 // Allow special jid "" or "." (current buddy) 3123 // Allow special jid "" or "." (current buddy)
3118 if (fjid && (!*fjid || !strcmp(fjid, "."))) 3124 if (fjid && (!*fjid || !strcmp(fjid, ".")))
3119 fjid = NULL; 3125 fjid = NULL;
3120 3126
3121 if (fjid) { 3127 if (fjid) {