diff 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
line wrap: on
line diff
--- a/mcabber/src/jabglue.c	Sun Oct 04 20:56:16 2009 +0200
+++ b/mcabber/src/jabglue.c	Tue Oct 06 21:22:51 2009 +0200
@@ -1144,6 +1144,8 @@
   void (*request_fn)(const char *);
   const char *strreqtype;
 
+  if (!online) return;
+
   if (reqtype == iqreq_version) {
     request_fn = &request_version;
     strreqtype = "version";