]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - extensions/m_roleplay.c
Allow kick_on_split_riding to protect channels with mlocked keys.
[irc/rqf/shadowircd.git] / extensions / m_roleplay.c
index 21dda930c769f6350da34f2423de1c1cc1200272..97a72ab0bf07cf3db745bc7a280812800fbf71be 100644 (file)
@@ -152,7 +152,7 @@ m_displaymsg(struct Client *source_p, const char *channel, int underline, int ac
                return 0;
        }
 
-       if(!(chptr->mode.mode & chmode_flags['E']))
+       if(!(chptr->mode.mode & chmode_flags['N']))
        {
                sendto_one_numeric(source_p, 573, "%s :Roleplay commands are not enabled on this channel.", chptr->chname);
                return 0;
@@ -190,7 +190,7 @@ m_displaymsg(struct Client *source_p, const char *channel, int underline, int ac
        }
 
        if(action)
-               rb_snprintf(text2, sizeof(text2), "\1ACTION %s", text);
+               rb_snprintf(text2, sizeof(text2), "\1ACTION %s\1", text);
        else
                rb_snprintf(text2, sizeof(text2), "%s", text);