changeset 641:62679532ea55

Allow special jid "." in commands /add and /status_to This special jid is the jid of the current buddy.
author Mikael Berthe <mikael@lilotux.net>
date Wed, 28 Dec 2005 19:05:11 +0100
parents 1cd7f8e3895b
children ebbe3845b46b
files mcabber/src/commands.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/commands.c	Wed Dec 28 18:58:03 2005 +0100
+++ b/mcabber/src/commands.c	Wed Dec 28 19:05:11 2005 +0100
@@ -506,7 +506,7 @@
   }
 
   // Allow things like /status_to "" away
-  if (!*jid)
+  if (!*jid || !strcmp(jid, "."))
     jid = NULL;
 
   if (jid) {
@@ -554,7 +554,7 @@
 
   if (!id)
     nick = NULL; // Allow things like: /add "" nick
-  else if (!*id)
+  else if (!*id || !strcmp(id, "."))
     id = NULL;
 
   if (id) {