Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: bs_fantasy_karma - 1.0 Released  (Read 5971 times)

0 Members and 1 Guest are viewing this topic.

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
bs_fantasy_karma - 1.0 Released
« 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
« Last Edit: December 24, 2011, 05:21:45 PM by Jan Milants »
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

VisioN

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 82
    • myIRC Project Hosting IRC Network
Re: bs_fantasy_karma (v0.2) - Testers needed
« Reply #1 on: August 26, 2011, 01:10:35 PM »

** thumbs up ** i guess we are the first testers ^^
Logged
______________________________
VisioN
Find me: irc.myirc.net | irc.anope.org
Contact me: vision@myirc.net

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: bs_fantasy_karma (v0.3) - Testers needed
« Reply #2 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!!!
« Last Edit: September 16, 2011, 08:34:11 AM by Jan Milants »
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

VisioN

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 82
    • myIRC Project Hosting IRC Network
Re: bs_fantasy_karma (v0.3) - Testers needed
« Reply #3 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
Logged
______________________________
VisioN
Find me: irc.myirc.net | irc.anope.org
Contact me: vision@myirc.net

Taylor

  • Contributor
  • *
  • Offline Offline
  • Posts: 100
Re: bs_fantasy_karma (v0.3) - Testers needed
« Reply #4 on: September 16, 2011, 12:42:40 AM »

Just installed it! :)
Logged
Cronus
irc.cncirc.net
http://CnCIRC.net

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
Re: bs_fantasy_karma (v0.4) - Testers needed
« Reply #5 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.
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
bs_fantasy_karma - 1.0 Released
« Reply #6 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.
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.
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)
Pages: [1]   Go Up