From f766d7041408ca3bb00a1760a11f9f59effe1c81 Mon Sep 17 00:00:00 2001 From: codemastr Date: Mon, 6 Aug 2001 17:28:29 +0000 Subject: [PATCH] Fixed a umode2 bug that crashed the server --- Changes | 3 ++- src/s_user.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 47a948d48..ccc09fc35 100644 --- a/Changes +++ b/Changes @@ -784,4 +784,5 @@ seen. gmtime warning still there - Using bahamut /who now, this needs some testing. - HCN fix - /who fix .. removed nick matching functionality.. -- Fixed a SNOMASK problem found by Arantis \ No newline at end of file +- Fixed a SNOMASK problem found by Arantis +- Fixed a umode2 bug that crashed the server diff --git a/src/s_user.c b/src/s_user.c index eee531ca6..b398a74dd 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -4449,6 +4449,8 @@ int m_umode2(cptr, sptr, parc, parv) NULL }; + if (!parv[1]) + return 0; m_umode(cptr, sptr, parv[3] ? 4 : 3, xparv); }