repost/plugins/mikrofalowka.rb

8 lines
251 B
Ruby
Raw Normal View History

2013-05-29 18:55:52 +00:00
include EventMachine::IRC::Commands
Client.register_trigger("PRIVMSG") { |msg|
2013-05-29 18:55:52 +00:00
nick = msg[:prefix].split('!').first
destination = msg[:params][0]
Client.privmsg(destination, "#{nick}: napraw mikrofalowke") if nick.match /[Bb].[Rr][Tt]/
2013-05-29 18:55:52 +00:00
}