From: Perry Lorier Date: Fri, 17 Nov 2000 00:16:20 +0000 (+0000) Subject: Author: Isomer X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=21adc78c56f940806a7902356f21fa52e54a76ff Author: Isomer 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 --- diff --git a/ChangeLog b/ChangeLog index e3b2362..34c5891 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-10-30 Isomer + + * 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 * ircd/m_whois.c: remove compiler warning by adding a newline to diff --git a/ircd/IPcheck.c b/ircd/IPcheck.c index 57865fc..84ceeb0 100644 --- a/ircd/IPcheck.c +++ b/ircd/IPcheck.c @@ -301,6 +301,7 @@ int ip_registry_check_remote(struct Client* cptr, int is_burst) entry->last_connect = NOW; } } + SetIPChecked(cptr); return 1; } diff --git a/ircd/m_topic.c b/ircd/m_topic.c index 039c1a6..2b7756e 100644 --- a/ircd/m_topic.c +++ b/ircd/m_topic.c @@ -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);