From: Kevin L. Mitchell Date: Fri, 2 Jun 2000 23:09:20 +0000 (+0000) Subject: Author: Kev X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;h=e97c9b3c94b4263bbfa3ca438f3e4182fdcf3f69;p=ircu2.10.12-pk.git Author: Kev Log message: Actually, this should be the slightest bit more efficient than an else-if clause. Status: Compiled Testing needed: Intuitively correct, but some testing is probably in order git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@246 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 7a8efe4..b69bc47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2000-06-02 Kevin L. Mitchell + * ircd/m_gline.c (ms_gline): actually, this should be the + slightest bit more efficient... + + * ircd/m_jupe.c (ms_jupe): actually, this should be the slightest + bit more efficient... + * ircd/m_gline.c (ms_gline): inhibit GLINE processing resends during netburst @@ -1165,7 +1171,7 @@ # # ChangeLog for ircu2.10.11 # -# $Id: ChangeLog,v 1.140 2000-06-02 22:57:33 kev Exp $ +# $Id: ChangeLog,v 1.141 2000-06-02 23:09:20 kev Exp $ # # Insert new changes at beginning of the change list. # diff --git a/ircd/m_gline.c b/ircd/m_gline.c index 4c1ebf6..bddf451 100644 --- a/ircd/m_gline.c +++ b/ircd/m_gline.c @@ -184,9 +184,7 @@ ms_gline(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) return gline_activate(cptr, sptr, agline, lastmod, flags); else return gline_deactivate(cptr, sptr, agline, lastmod, flags); - } else if (GlineLastMod(agline) == lastmod) - return 0; - else if (IsBurstOrBurstAck(cptr)) /* it's in the burst, so don't resynch */ + } else if (GlineLastMod(agline) == lastmod || IsBurstOrBurstAck(cptr)) return 0; else return gline_resend(cptr, agline); /* other server desynched WRT gline */ diff --git a/ircd/m_jupe.c b/ircd/m_jupe.c index 4647952..4be6856 100644 --- a/ircd/m_jupe.c +++ b/ircd/m_jupe.c @@ -165,9 +165,7 @@ int ms_jupe(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) return jupe_activate(cptr, sptr, ajupe, lastmod, flags); else return jupe_deactivate(cptr, sptr, ajupe, lastmod, flags); - } else if (JupeLastMod(ajupe) == lastmod) /* no changes */ - return 0; - else if (IsBurstOrBurstAck(cptr)) /* it's in the burst, so don't resynch */ + } else if (JupeLastMod(ajupe) == lastmod || IsBurstOrBurstAck(cptr)) return 0; else return jupe_resend(cptr, ajupe); /* other server desynched WRT jupes */