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