]> jfr.im git - irc/freenode/ircd-seven.git/commitdiff
callerid: unregister usermode +g if usermode +G cannot be allocated
authorAriadne Conill <redacted>
Sat, 27 Jun 2020 15:59:44 +0000 (15:59 +0000)
committerAriadne Conill <redacted>
Thu, 9 Jul 2020 22:06:33 +0000 (16:06 -0600)
modules/um_callerid.c

index 1e8a7423195ae74af0b2729049be68e5744752b6..616ac87f487ac83eaee47a07cffd1da2fb09815d 100644 (file)
@@ -57,6 +57,8 @@ um_callerid_modinit(void)
        user_modes['G'] = find_umode_slot();
        if (!user_modes['G'])
        {
+               user_modes['g'] = 0;
+
                ierror("um_callerid: unable to allocate usermode slot for +G; unloading module.");
                return -1;
        }