1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-02 19:33:13 +02:00

Fixed a possible restart/die bug

This commit is contained in:
codemastr
2001-07-31 16:37:11 +00:00
parent af87d2c18b
commit b0536af4e9
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -748,5 +748,4 @@ seen. gmtime warning still there
* setgid has to be called before setuid... cos if you change to a non-priv
uid first then you are not allowed to setgid!
- Added more network files
- Fixed a possible restart/die bug
+2 -2
View File
@@ -4060,7 +4060,7 @@ int m_restart(cptr, sptr, parc, parv)
}
if ((pass = conf_drpass->restart))
if (conf_drpass && (pass = conf_drpass->restart))
{
if (parc < 2)
{
@@ -4707,7 +4707,7 @@ int m_die(cptr, sptr, parc, parv)
return 0;
}
if ((pass = conf_drpass->die)) /* See if we have and DIE/RESTART password */
if (conf_drpass && (pass = conf_drpass->die)) /* See if we have and DIE/RESTART password */
{
if (parc < 2) /* And if so, require a password :) */
{