mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-06 19:23:13 +02:00
-- Fixed one of codemastr's wonderful coding bugs. *slap slap slap*
+- Fixed windows CRLF problem in conf2, reported by Zogg
This commit is contained in:
@@ -261,4 +261,4 @@
|
||||
removed inittoken, made command initalization happen in init_CommandHash
|
||||
- Adapted /stats M to it. Removed /helpop ?commands temporary. Confirming
|
||||
hashtable works.
|
||||
- Fixed one of codemastr's wonderful coding bugs. *slap slap slap*
|
||||
- Fixed windows CRLF problem in conf2, reported by Zogg
|
||||
|
||||
@@ -332,6 +332,11 @@ static ConfigFile *config_parse(char *filename, char *confdata)
|
||||
lastce = &(curcf->cf_entries);
|
||||
curce = NULL;
|
||||
cursection = NULL;
|
||||
/* Replace \r's with spaces .. ugly ugly -Stskeeps */
|
||||
for (ptr=confdata; *ptr; ptr++)
|
||||
if (*ptr == '\r')
|
||||
*ptr = ' ';
|
||||
|
||||
for(ptr=confdata;*ptr;ptr++)
|
||||
{
|
||||
switch(*ptr)
|
||||
|
||||
Reference in New Issue
Block a user