]> jfr.im git - solanum.git/commitdiff
SET SPANNUM: Fix incorrect > 0 check to be >= 0
authorJailBird <redacted>
Wed, 9 Nov 2022 23:50:33 +0000 (17:50 -0600)
committerDoug Freed <redacted>
Wed, 9 Nov 2022 23:56:15 +0000 (17:56 -0600)
modules/m_set.c

index 95114fdd2aa4c680571e99aa4e132432a30d7d63..377879eb453759e335be570b6c3a8e9e1e39a538 100644 (file)
@@ -289,7 +289,7 @@ quote_adminstring(struct Client *source_p, const char *arg, int newval)
 static void
 quote_spamnum(struct Client *source_p, const char *arg, int newval)
 {
-       if(newval > 0)
+       if(newval >= 0)
        {
                if(newval == 0)
                {