Anope IRC Services

Anope Development => Modules => Topic started by: Jan Milants on August 26, 2011, 11:54:28 AM

Title: bs_fantasy_karma - 1.0 Released
Post by: Jan Milants on August 26, 2011, 11:54:28 AM
Since today is a special day, I decided to release a nice new module..  :)

And behold.. bs_fantasy_karma, providing the !karma functionality as it's also found in #anope, but not through an eggdrop, instead it is integrated into botserv. The systerm is turned on/off per channel and everything else works more or less the same.. karma can only be given to a registered user, by a registered user, and only once per channel. (The maximum karma a single user can contribute to another user can be configured in services.conf together with a minimum interval separating consecutive same sign karma operations). Everything else should be clear.. nothing complicated..

This module can now be considered stable enough for production use I think and since the Anope code is required cna now be found in the newly released Anope-1.8.7 I have published version 1.0 to the modules site: http://modules.anope.org/index.php?page=view&id=231

This is a highly recommended update as it fixes a crashbug in the previous development release when !karma all was issued by an unregistered user.

Latest code can normally be found in my GIT repo: http://git.milanza.org/?p=anope-modules/bs_fantasy_karma;a=summary
Title: Re: bs_fantasy_karma (v0.2) - Testers needed
Post by: VisioN on August 26, 2011, 01:10:35 PM
** thumbs up ** i guess we are the first testers ^^
Title: Re: bs_fantasy_karma (v0.3) - Testers needed
Post by: Jan Milants on September 15, 2011, 10:35:19 PM
I have updated the first post with the latest release: version 0.3.

Changes:
Code: [Select]
- Added a reply showing a users new karma after giving karma.
 - Added ability to contribute karma to users up to a configured max.
 - Added ability to define a minimum interval between consecutive contributions.
 - Added simple checksum to validate DB records.
 - Changed turning karma on/off sending the reply to the channel.
 - Changed access lvl required for querying with the ALL param to voice.
 - Fixed replies to !karma to go to the channel; errors are still a notice.

Note that because this is still under development and judging by the download numbers, barely any one even even tried it, I did not include a DB upgrade script.
As a result you must delete your old karma database file before loading the new version!!!
Title: Re: bs_fantasy_karma (v0.3) - Testers needed
Post by: VisioN on September 15, 2011, 10:58:31 PM
Β¬ 12:56:34am| -OperServ- Module: bs_fantasy_karma [Viper 0.3 [ QM-S-I=0s-M=1]] [3rd]

 ;D
Title: Re: bs_fantasy_karma (v0.3) - Testers needed
Post by: Taylor on September 16, 2011, 12:42:40 AM
Just installed it! :)
Title: Re: bs_fantasy_karma (v0.4) - Testers needed
Post by: Jan Milants on September 19, 2011, 09:44:35 PM
Seems the previous release has a tiny problem...  :-[
It won't load or save the karma database correctly, so when the module is unloaded all data is lost.. the previous update required a fresh database in any case, but simply restarting services would wipe the DB again..

So here s another release with some other minor fixes, though the DB issue is by far the most important.. (attached to first post)
Changes:
Code: [Select]
- Changed how the validation code is calculated.
 - Fixed a bug in the code validation on loading the DB.
 - Fixed SAs not being able to use !set karma on.
 - Fixed missing event hooks.
 - Fixed flags not getting updated on reload.

So yeah.. due to the bug updating will clear your DB.. - should be the last time though  ::)

I don't plan any further major changes.. if this version doesn't have any major issues, a stable release will be posted on the modules site upon the release of anope 1.8.7.
Title: bs_fantasy_karma - 1.0 Released
Post by: Jan Milants on December 24, 2011, 05:26:19 PM
With the release of anope 1.8.7, I can now publish this module on the modules site..

Version 1.0 can now be downloaded form the modules site (http://modules.anope.org/index.php?page=view&id=231).
This is a highly recommended update for anyone running 0.4 as it fixes a crashbug in !karma all when triggered by an unregistered user.

Changes
Quote
- Fixed SUPPORTED pre-compile configuration setting.
 - Fixed DB loading routine aborting over missing(/expired) nicks or channels.
 - Fixed crash when !karma <nick> all is issued by an unregistered user.