summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/rbotconfig.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/rbotconfig.rb b/lib/rbot/rbotconfig.rb
index 692113a9..eb55f965 100644
--- a/lib/rbot/rbotconfig.rb
+++ b/lib/rbot/rbotconfig.rb
@@ -27,7 +27,7 @@ class Bot
begin
debug "trying to load rubygems"
require 'rubygems'
- if $version =~ /^(.*)-git( .*)?$/
+ if $version =~ /^(.*)-(?:git|rc\d)(?: .*)?$/
version = $1
else
version = $version