Allow special jid "." in commands /add and /status_to
This special jid is the jid of the current buddy.
--- 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) {