Commit Graph

218 Commits

Author SHA1 Message Date
Yizhe Shen 8fe0faac8c Updated TriviaAdmin-only commands. (issue #300)
- Updated TriviaTime.clearpoints(), TriviaTime.givepoints() and
  TriviaTime.transferpoints() with new capability checking methods
2014-06-14 15:46:16 -04:00
Yizhe Shen 58cdb8117f Added custom capability checks. (issue #300)
- Added TriviaTime.isTriviaMod(), TriviaTime.isTriviaAdmin() and
  TriviaTime.getTriviaCapability() to allow better control over TriviaTime
  commands
- Updated TriviaTime.acceptdelete(), TriviaTime.acceptedit(),
  TriviaTime.acceptnew(), TriviaTime.add() and TriviaTime.authweb() to use
  the new capability checking methods
2014-06-14 15:32:37 -04:00
Yizhe Shen 3e31309985 Small change in TriviaTime.authweb().
- Set capability based on decreasing importance
2014-06-14 14:10:59 -04:00
Yizhe Shen 5462d30d83 Fixed TriviaTime.authweb().
- Replaced 'checkChannelCapability' with 'channel' from wrapper due to the
  existing (better) check within the method
2014-06-14 12:03:33 -04:00
Yizhe Shen 26a152c8b5 Fix for 'clear/give/transferpoints' commands.
- Added channel parameter, required for the switch to 'triviaadmin'
  channel capability
- Not a fix for issue #300
2014-06-14 06:42:01 -04:00
Yizhe Shen 98759fc8de Updated sanity checking for TriviaTime.start(). 2014-06-14 05:47:05 -04:00
Yizhe Shen 5ee70f33aa Minor changes.
- Some minor refactoring
- Moved 'start' command's start message into the constructor of Game to
  ensure that messages are sent out in the right order
- Channel capability checks are now only performed if the 'start' command
  actually starts a new game
2014-06-14 04:26:01 -04:00
Yizhe Shen 01825105d8 Modified some comments, refactored TriviaTime.stop(). 2014-06-14 02:35:38 -04:00
Yizhe Shen ad3fff361c Replaced bot messaging with irc.reply() for some methods.
- Replaced instances of irc.sendMessage() and irc.error() with irc.reply()
  in TriviaTime.stop(), TriviaTime.start(), TriviaTime.skip(),
  TriviaTime.repeat(), TriviaTime.next() and TriviaTime.time()
- Used the parameter 'prefixNick=False' in cases where the reply shouldn't
  include the caller's nick as a prefix
2014-06-13 09:40:11 -04:00
Yizhe Shen 5f79ef4688 Added Game.sendQuestion() method to clean up code.
- Eliminates code repetition in Game.nextQuestion() and
  Game.repeatQuestion()
2014-06-13 08:27:48 -04:00
Yizhe Shen ed378a7629 Updated 'time' and 'repeat' commands. (issue #299)
- 'time' command now responds in PM as well
- 'repeat' command is now in-channel only
- Moved sanity checking from Game.repeatQuestion() to TriviaTime.repeat()
  and added an extra check to see if the game is currently running in the
  channel
2014-06-13 08:01:47 -04:00
Yizhe Shen bd12e46731 Updated 'stop' command. (issue #299)
- 'stop' command only responds in-channel now
- Partial refactoring of stop()
2014-06-13 03:33:01 -04:00
Yizhe Shen c42aeebc99 More code refactoring.
- Updated 'next' command to use 'onlyInChannel' wrapper parameter
- Partial refactoring of next() and skip()
2014-06-13 02:02:41 -04:00
Yizhe Shen 0a1ed5cb37 Partial fix for issue #288.
- For registered users, the 'skip' command now stores the registered name
  of the user instead of the user's current nick
- Unregistered users still won't have tracking for 'skip' across different
  nicks
- Made skip() an 'onlyInChannel' command
- Partial refactoring of skip() method
- Small fix for kaosRemainingCommand
2014-06-13 01:16:25 -04:00
tannn d78fb7f966 Update version 2014-06-12 21:57:34 -05:00
Tanner ddc2149e16 Improve text, add triviaadmin to authweb
Test improved includes the authweb command description and error, along
with the error when using .next via message.
2014-06-12 21:26:10 -05:00
Yizhe Shen 747a8a6bcf Minor changes to start() method.
- Moved setting of channel capabilities until after the game is initialized
- Added 'onlyInChannel' wrapper parameter in start() method to replace the
  existing check and channel parsing
2014-06-12 07:41:43 -04:00
Yizhe Shen 0a15387783 Added auto-enforcement of TriviaTime channel capabilities. (issue #294)
- Whenever the 'start' command is issued in any channel, the game now
  checks to see if '-triviamod' and '-triviaadmin' are set as channel
  capabilities for that channel and sets them if they are not
2014-06-12 07:07:00 -04:00
Yizhe Shen b9170a7cc2 Updated command permissions and added channel capability. (issue #294)
- Updated command permissions as specified in issue #294
- Removed 'user' wrapper parameter for commands that required a higher
  capability
- Added new "triviaadmin" channel capability
- Added proper 'channel' wrapper parameter where required
- Modified user capability check for authweb() method
2014-06-12 04:11:53 -04:00
Yizhe Shen 7e17149555 Fix for issue #269.
- Added check to showround() to disallow usage for the current question if
  it is still in play
2014-06-10 20:32:04 -04:00
Yizhe Shen 53766b0347 Added 'by' info for shownew(). Removed 'Text:' from showround(). 2014-06-10 19:05:56 -04:00
Yizhe Shen 76aa2adf59 Fix for kaosRemainingCommand.
- Added check to make sure that the current question is a KAOS question
2014-06-08 23:43:19 -04:00
Tanner f75457bc4f General nitpicking 2014-06-04 17:07:24 -05:00
Yizhe Shen b8ea810d8f Added editor information to "showedit" and a couple of fixes.
- "showedit" command now displays who edited the question
- Fix for kaosRemainingCommand (syntax error)
- Fixed a typo in TriviaTime.addfile()
2014-06-03 22:44:58 -04:00
Yizhe Shen 78b9749015 Minor change for hint command.
Made the check for KAOS questions more robust.
2014-02-13 18:28:01 -05:00
Yizhe Shen 8e986df709 Fix for issue #261.
Lets the normal extra hint command also work for KAOS questions. Adds a
notice about this update to players who use the KAOS hint command.
2014-02-12 01:23:44 -05:00
rootcoma 602a63c932 Show points for today in recap. Fix deletegames 2014-01-13 02:03:09 -08:00
rootcoma 4632753155 Fix #0 this month 2014-01-06 17:29:03 -08:00
rootcoma 48aee817ae Add streak without adding to pointsAdded 2014-01-06 17:08:33 -08:00
rootcoma 14932826bc Adding streakbonus to pointsAdded 2014-01-06 01:46:27 -08:00
rootcoma 36b9812610 remove voice on right answer 2014-01-05 00:01:24 -08:00
tannn debd947bde Updating version 2014-01-04 22:26:44 -06:00
tannn 922434436d Update active in info 2014-01-04 22:24:35 -06:00
tannn c2eb0170e5 Don't add streak to the question's points
Fixes #270
2014-01-04 22:02:23 -06:00
tannn 32bbce3982 Updated version and other minor changes 2014-01-04 21:45:27 -06:00
rootcoma 6c893eff40 fix voice 2013-12-14 16:44:43 -08:00
rootcoma 8114a411c1 Remove check for op on voice 2013-12-14 16:35:58 -08:00
rootcoma 87579b1ab9 Fix rmnew, remove dupe answers in kaos 2013-12-13 12:12:10 -08:00
Srijay Kasturi 79afe41de6 i suck so badly at this fix #250 2013-12-12 15:59:52 -05:00
rootcoma 9a0299d5b6 Adding network to game object storage 2013-12-09 20:24:40 -08:00
rootcoma 92b6a61ecc Add reload and die functions 2013-12-09 12:11:04 -08:00
rootcoma aefc0be7f5 Adding recent activites, adding config for turning off logging 2013-12-09 10:37:28 -08:00
rootcoma d97b866339 didn't like formatting 2013-12-08 20:43:30 -08:00
rootcoma f17de80a22 Fixing KeyError on authweb 2013-12-08 20:05:28 -08:00
rootcoma 8416e74922 Fixing KeyError on authweb 2013-12-08 19:59:23 -08:00
rootcoma 6075f4379e Fixing logging error in authweb 2013-12-08 19:28:54 -08:00
rootcoma 6f70a6c2bc Adding logger 2013-12-08 17:30:54 -08:00
rootcoma 1243c7310a adding check for op halfop before voicing 2013-12-07 18:12:27 -08:00
rootcoma f6a3471e0c Adding voice check, voice on correctans 2013-12-07 17:43:17 -08:00
rootcoma 5d188395db Adding check for ops before voicing 2013-12-07 17:00:27 -08:00