X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Frbotconfig.rb;h=eb55f96533e24eda007f39ce61e8c5c268b7e2f2;hb=39503c481daf957c741db89767295a444973986d;hp=692113a90d5c288e1e981afc0905abd9f7524291;hpb=c6c8cb17afbaee0ccf1373d5b866d2d46efe4fcc;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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