[JDEV] does anyone knows how to disable Karma??

Dustin Puryear dpuryear at usa.net
Thu May 3 13:56:07 CDT 2001


temas wrote:
> 
> I thought that function only did rate limit checks, not karma?

Well, whatever it does, I am no longer rate-limited. 

Regards, Dustin

> 
> --temas
> 
> On 03 May 2001 10:04:43 -0500, Dustin Puryear wrote:
> > Dixon Canario wrote:
> > >
> > > Hi Dustin,
> > >
> > >     Can I get your soluction please... can I get the code for that file or
> > > just tell me what to fix so that I can solve that problem, too.
> > >
> > > oh and what you mean by: Short-Circuiting it!
> > >    Well help me man, this part is kicking my behind... :)
> >
> > Change jabberd/lib/rate.c:jlimit_check() to:
> >
> > int jlimit_check(jlimit r, char *key, int points)
> > {
> >     int now = time(NULL);
> >
> >     if(r == NULL) return 0;
> >
> >     return 0;
> > ...
> >
> > This seems to do the trick.
> >
> > Regards, Dustin
> >
> >
> > >
> > > Thanx,
> > >     Dixon
> > >
> > > -----Original Message-----
> > > From: jdev-admin at jabber.org [mailto:jdev-admin at jabber.org]On Behalf Of
> > > Dustin Puryear
> > > Sent: Wednesday, May 02, 2001 12:57 PM
> > > To: jdev at jabber.org
> > > Subject: Re: [JDEV] does anyone knows how to disable Karma??
> > >
> > > FYI, I ended up short-circuiting the karma code in
> > > jabberd/lib/rate.c:jlimit_check(). Using <dec>0</dec> does not seem to
> > > work.
> > >
> > > Regards, Dustin
> > >
> > > --
> > > Dustin Puryear <dpuryear at usa.net>
> > > http://members.telocity.com/~dpuryear
> > > In the beginning the Universe was created.
> > > This has been widely regarded as a bad move. - Douglas Adams
> > > _______________________________________________
> > > jdev mailing list
> > > jdev at jabber.org
> > > http://mailman.jabber.org/listinfo/jdev
> > >
> > > _______________________________________________
> > > jdev mailing list
> > > jdev at jabber.org
> > > http://mailman.jabber.org/listinfo/jdev
> >
> > --
> > Dustin Puryear <dpuryear at usa.net>
> > http://members.telocity.com/~dpuryear
> > In the beginning the Universe was created.
> > This has been widely regarded as a bad move. - Douglas Adams
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev

-- 
Dustin Puryear <dpuryear at usa.net>
http://members.telocity.com/~dpuryear
In the beginning the Universe was created. 
This has been widely regarded as a bad move. - Douglas Adams



More information about the JDev mailing list