replace "0" by "+49"

This commit is contained in:
Andreas Kool 1999-07-12 18:50:06 +00:00
parent 3fb321f79e
commit bbb3e07535
3 changed files with 18 additions and 7 deletions

View File

@ -1,4 +1,4 @@
V:1.02-Germany [10-Jul-1999 23:32:36]
V:1.02-Germany [12-Jul-1999 20:54:06]
N:Usbekistan
@ -762,13 +762,15 @@ C:+358
N:Finnland Mobilfunk
C:+358 /* fixme */
# fixme: Zypern muß aufgesplittet werden!
N:Zypern
A:Cyprus
A:Zypern (Türkisch),Zypern (Griechisch),Zypern (griech.)
A:Zypern (Nordzypern)
A:Zypern (Griechisch),Zypern (griech.)
C:+357
N:Zypern (Türkisch)
A:Zypern (Nord), Zypern (Nordzypern)
C:+90392
N:Malta
C:+356

View File

@ -1,4 +1,4 @@
V:1.02-Germany [10-Jul-1999 23:32:27]
V:1.02-Germany [12-Jul-1999 20:53:57]
# Währungsformat
U:%.3f DM
@ -11519,7 +11519,6 @@ C:Hotline: 01802/2002
C:Faxabruf: 01802/2001
P:50,1 Talkline CbC
D:dtag
F:E
Z:2-4 Fern
A:+49
T:W/07-19=0.15/60
@ -11652,7 +11651,6 @@ A:Monaco Mobilfunk
A:Neuseeland Mobilfunk
A:Niederlande Mobilfunk
A:Norwegen Mobilfunk
A:Österreich Mobilfunk
A:Schweden Mobilfunk
A:Schweiz Mobilfunk
A:Spanien Mobilfunk

View File

@ -19,6 +19,9 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log$
* Revision 1.33 1999/07/03 10:24:18 akool
* fixed Makefile
*
* Revision 1.32 1999/07/02 19:18:11 akool
* rate-de.dat V:1.02-Germany [02-Jul-1999 21:27:20]
*
@ -524,6 +527,7 @@ int initRate(char *conf, char *dat, char *dom, char **msg)
bitfield day, hour;
double price, divider, duration;
char buffer[LENGTH], path[LENGTH], Version[LENGTH]="<unknown>";
char sx[BUFSIZ];
char *c, *s;
int booked[MAXPROVIDER], variant[MAXPROVIDER];
int Providers=0, Areas=0, Services=0, Zones=0, Hours=0;
@ -796,6 +800,13 @@ int initRate(char *conf, char *dat, char *dom, char **msg)
s+=2;
while(1) {
if (*(c=strip(str2list(&s)))) {
if (*c == '0' && (*(c + 1) != '0')) {
sprintf(sx, "%s%s", mycountry, c + 1);
print_msg(PRT_NORMAL, "WARNING: Replacing %s by %s\n", c, sx);
c = sx;
} /* if */
if (!isdigit(*c) && (d=getCountry(c, &Country)) != UNKNOWN) {
if (*c=='+') {
Areas += appendArea (prefix, c, Country->Name, zone, &domestic, dat);