Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / m_topic.c
index 039c1a60589751bef90627c0560ede72dcf4b0f0..2b7756e64ab67342d8f8ec134930fd31e9a6bada 100644 (file)
@@ -114,7 +114,7 @@ static void do_settopic(struct Client *sptr, struct Client *cptr,
     * send it to all the clients to save bandwidth.  We still send
     * it to other servers as they may have split and lost the topic.
     */
-   newtopic=ircd_strncmp(chptr->topic,topic,TOPICLEN)==0;
+   newtopic=ircd_strncmp(chptr->topic,topic,TOPICLEN)!=0;
    /* setting a topic */
    ircd_strncpy(chptr->topic, topic, TOPICLEN);
    ircd_strncpy(chptr->topic_nick, sptr->name, NICKLEN);