Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.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 | b5861a0fcd30 |
children |
comparison
equal
deleted
inserted
replaced
1591:44fef962f572 | 1592:1802b926e3fa |
---|---|
1141 { | 1141 { |
1142 GSList *resources, *p_res; | 1142 GSList *resources, *p_res; |
1143 GSList *roster_elt; | 1143 GSList *roster_elt; |
1144 void (*request_fn)(const char *); | 1144 void (*request_fn)(const char *); |
1145 const char *strreqtype; | 1145 const char *strreqtype; |
1146 | |
1147 if (!online) return; | |
1146 | 1148 |
1147 if (reqtype == iqreq_version) { | 1149 if (reqtype == iqreq_version) { |
1148 request_fn = &request_version; | 1150 request_fn = &request_version; |
1149 strreqtype = "version"; | 1151 strreqtype = "version"; |
1150 } else if (reqtype == iqreq_time) { | 1152 } else if (reqtype == iqreq_time) { |