summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias Hecker <mail@apoc.cc>2020-04-06 21:08:55 +0200
committerMatthias Hecker <mail@apoc.cc>2020-04-06 21:08:55 +0200
commit07a397f63f0c7dc7f53830a57ce9048cfd9efb53 (patch)
treeb5fca98ca966fafcc8017f276bd2524af2e889c3 /lib
parent618df277b7cb7d160ba5c86d1a22298a4741ed5f (diff)
plugin(points): +/- must come after, closes #34
This modifies the karma/points plugin to ignore increment/ decrement suffixes. `--SOMETHING` is more trouble than its worth, people will write --NAME as a signature, or paste a command line argument, e.g. `ls --sort time` which causes issues. I also added tests for the points plugin, the plan is to make the plugin testing easier more "rubionic"
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/language.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rbot/language.rb b/lib/rbot/language.rb
index 7193c39e..8055ea0e 100644
--- a/lib/rbot/language.rb
+++ b/lib/rbot/language.rb
@@ -11,6 +11,9 @@ module Irc
class Bot
class Language
+ # Access needed for tests:
+ attr_reader :strings
+
# This constant hash holds the mapping
# from long language names to the usual POSIX
# locale specifications