comparison mcabber/src/commands.c @ 1433:0c030b00306d

Allow the special JID "." in command say_to
author Mikael Berthe <mikael@lilotux.net>
date Sat, 23 Feb 2008 11:49:34 +0100
parents 46e5eb9917bc
children bed2f0caa952
comparison
equal deleted inserted replaced
1432:46e5eb9917bc 1433:0c030b00306d
1441 } 1441 }
1442 1442
1443 fjid = *paramlst; 1443 fjid = *paramlst;
1444 msg = *(paramlst+1); 1444 msg = *(paramlst+1);
1445 1445
1446 if (!strcmp(fjid, ".") || check_jid_syntax(fjid)) { 1446 if (!strcmp(fjid, ".")) {
1447 // Send the message to the current buddy
1448 if (current_buddy)
1449 fjid = (char*)buddy_getjid(BUDDATA(current_buddy));
1450 if (!fjid) {
1451 scr_LogPrint(LPRINT_NORMAL, "Please specify a Jabber ID.");
1452 free_arg_lst(paramlst);
1453 return;
1454 }
1455 } else if (check_jid_syntax(fjid)) {
1447 scr_LogPrint(LPRINT_NORMAL, "Please specify a valid Jabber ID."); 1456 scr_LogPrint(LPRINT_NORMAL, "Please specify a valid Jabber ID.");
1448 free_arg_lst(paramlst); 1457 free_arg_lst(paramlst);
1449 return; 1458 return;
1450 } 1459 }
1451 1460