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:
@@ -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
@@ -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 :) */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user