# HG changeset patch # User Mikael Berthe # Date 1135793111 -3600 # Node ID 62679532ea55de55c07fbc45cfbbcfaae9122e28 # Parent 1cd7f8e3895b96b48dc1441b12a02706dfea4b2b Allow special jid "." in commands /add and /status_to This special jid is the jid of the current buddy. diff -r 1cd7f8e3895b -r 62679532ea55 mcabber/src/commands.c --- 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) {