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:
+5
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user