No longer prefix international numbers with "+" if not necessary

This commit is contained in:
Pierre Pronchery 2014-02-21 00:42:37 +01:00
parent 480e12fe5e
commit 0e214179ea

View File

@ -3638,8 +3638,9 @@ static void _on_code_cpbr(HayesChannel * channel, char const * answer)
switch(u)
{
case 145:
/* FIXME could it be in some cases that the "+" is
* already there? (huawei) */
if(number[0] == '+')
break;
/* prefix the number with a "+" */
memmove(&number[1], number, sizeof(number) - 1);
number[0] = '+';
break;