| 26 |
|
|
| 27 |
|
#include "numeric.h" |
| 28 |
|
#include "irc_string.h" |
| 29 |
– |
#include "common.h" /* NULL cripes */ |
| 29 |
|
#include "memory.h" |
| 30 |
|
#include "s_log.h" |
| 31 |
|
#include "fileio.h" |
| 90 |
|
for (; *old >= '0' && *old <= '9'; old++); /* skip size prefix */ |
| 91 |
|
if (*new != *old++) |
| 92 |
|
{ |
| 93 |
< |
ilog(L_ERROR, "Incompatible format symbols (%s.lang, %d)", |
| 94 |
< |
locale, linecnt); |
| 93 |
> |
ilog(LOG_TYPE_IRCD, "Incompatible format symbols (%s.lang, %d)", |
| 94 |
> |
locale, linecnt); |
| 95 |
|
return 0; |
| 96 |
|
} |
| 97 |
|
found = 1; |
| 101 |
|
} |
| 102 |
|
if (!found) |
| 103 |
|
{ |
| 104 |
< |
ilog(L_ERROR, "Too many format symbols (%s.lang, %d)", locale, linecnt); |
| 104 |
> |
ilog(LOG_TYPE_IRCD, "Too many format symbols (%s.lang, %d)", locale, linecnt); |
| 105 |
|
return(0); |
| 106 |
|
} |
| 107 |
|
} |
| 175 |
|
if (*reply != ':') |
| 176 |
|
{ |
| 177 |
|
error: |
| 178 |
< |
ilog(L_ERROR, "Invalid line in language file (%s.lang, %d)", |
| 179 |
< |
locale, linecnt); |
| 178 |
> |
ilog(LOG_TYPE_IRCD, "Invalid line in language file (%s.lang, %d)", |
| 179 |
> |
locale, linecnt); |
| 180 |
|
res = 0; |
| 181 |
|
continue; |
| 182 |
|
} |
| 205 |
|
} |
| 206 |
|
if (i != -1) |
| 207 |
|
{ |
| 208 |
< |
ilog(L_ERROR, |
| 208 |
> |
ilog(LOG_TYPE_IRCD, |
| 209 |
|
"Unknown numeric %s (%s.lang, %d)", ident, locale, linecnt); |
| 210 |
|
res = 0; |
| 211 |
|
} |