Author: Isomer <isomer@coders.net>
authorPerry Lorier <isomer@undernet.org>
Fri, 17 Nov 2000 00:16:20 +0000 (00:16 +0000)
committerPerry Lorier <isomer@undernet.org>
Fri, 17 Nov 2000 00:16:20 +0000 (00:16 +0000)
Log message:

Fixed bug as reported by maniac. (Topic's not being propergated properly)

Fixed bug as reported by net, cleaning up the patch slightly. (clients not
having their 'IPchecked flag' set)

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@307 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/IPcheck.c
ircd/m_topic.c

index e3b236258f7d6810d78c01166d391fd2cca0b62a..34c5891b4f4c3b1e48563d6a034772cb895a64e2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-10-30  Isomer <isomer@coders.net>
+
+       * ircd/m_topic.c: Fixed bug where we'd only send to clients topics
+       that were the *same* instead of different.  Oh the embarrasment!
+
+       * ircd/IPcheck.c: Merged net's fix.
+
 2000-11-02  Kevin L. Mitchell  <klmitch@mit.edu>
 
        * ircd/m_whois.c: remove compiler warning by adding a newline to
index 57865fc5da570893bcb3c1a4c5bfe70b7bceb66f..84ceeb00173d489974ecb50f7e5a87bf1ed09c55 100644 (file)
@@ -301,6 +301,7 @@ int ip_registry_check_remote(struct Client* cptr, int is_burst)
       entry->last_connect = NOW;
     }
   }
+  SetIPChecked(cptr);
   return 1;
 }
 
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);