text = String.new
@text.each_line { |l|
debug "line: #{l.inspect}"
- cur_nick = l.match(/^\s*(<.*?>|\(.*?\)|.*?:)/)[1] rescue nil
+ cur_nick = l.match(/^\s*(<.*?>|\(.*?\)|.*?:)\s/)[1] rescue nil
debug "nick: #{cur_nick.inspect}; last: #{last_nick.inspect}"
if cur_nick and cur_nick == last_nick
text << l.sub(cur_nick,"")
class BashPlugin < Plugin
- BotConfig.register BotConfigEnumValue.new('bash.access',
+ Config.register Config::EnumValue.new('bash.access',
:values => ['xml', 'html'], :default => 'html',
:desc => "Which method the bot should use to access bash.org quotes: xml files or standard webpages")