1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 20:43:12 +02:00

fixed a bug when running the ircd with -h

This commit is contained in:
codemastr
2000-09-02 16:32:28 +00:00
parent 377d9554d3
commit a7ee96c3ce
3 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -808,6 +808,10 @@ int InitwIRCD(argc, argv)
break;
#endif
case 'h':
if (!strchr(p, '.')) {
(void)printf("ERROR: %s is not valid: Server names must contain at least 1 \".\"\n", p);
exit(1);
}
strncpyzt(me.name, p, sizeof(me.name));
break;
case 'H':
@@ -841,7 +845,7 @@ int InitwIRCD(argc, argv)
bootopt |= BOOT_TTY;
break;
case 'v':
(void)printf("ircd %s\n", version);
(void)printf("%s\n", version);
#else
case 'v':
MessageBox(NULL, version, "UnrealIRCD/Win32 version",