--- a/mcabber/src/commands.c Sat Feb 23 11:42:07 2008 +0100
+++ b/mcabber/src/commands.c Sat Feb 23 11:49:34 2008 +0100
@@ -1443,7 +1443,16 @@
fjid = *paramlst;
msg = *(paramlst+1);
- if (!strcmp(fjid, ".") || check_jid_syntax(fjid)) {
+ if (!strcmp(fjid, ".")) {
+ // Send the message to the current buddy
+ if (current_buddy)
+ fjid = (char*)buddy_getjid(BUDDATA(current_buddy));
+ if (!fjid) {
+ scr_LogPrint(LPRINT_NORMAL, "Please specify a Jabber ID.");
+ free_arg_lst(paramlst);
+ return;
+ }
+ } else if (check_jid_syntax(fjid)) {
scr_LogPrint(LPRINT_NORMAL, "Please specify a valid Jabber ID.");
free_arg_lst(paramlst);
return;