Fix another typo that should have been obvious.
authorMichael Poole <mdpoole@troilus.org>
Sat, 18 Dec 2004 14:48:42 +0000 (14:48 +0000)
committerMichael Poole <mdpoole@troilus.org>
Sat, 18 Dec 2004 14:48:42 +0000 (14:48 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1282 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ircd/m_topic.c

index d646907596e24728d845deeca8325d1769d4e319..db833dd6a5f0d89880ec74a0998ce78f2636270b 100644 (file)
@@ -111,7 +111,7 @@ static void do_settopic(struct Client *sptr, struct Client *cptr,
    {
        /* allow off-channel services to set the topic of any channel */
    }
-   else if ((chptr->mode.mode & MODE_TOPICLIMIT) != 0 && is_chan_op(sptr, chptr))
+   else if ((chptr->mode.mode & MODE_TOPICLIMIT) && !is_chan_op(sptr, chptr))
    {
       /* if +t and not @'d, return an error and ignore the topic */
       send_reply(sptr, ERR_CHANOPRIVSNEEDED, chptr->chname);