This commit is contained in:
Robert Gerus 2014-03-25 07:30:51 +01:00
parent d9a16c788e
commit a50115b67f

View file

@ -4,8 +4,8 @@ Client.register_trigger("PRIVMSG") { |msg|
message = msg[:params][1]
destination = msg[:params][0]
if Config[:eval][:owners].include?(msg[:prefix]) then
if message[0..5] == ":eval " then
if message[0..5] == ":eval " then
if Config[:eval][:owners].include?(msg[:prefix]) then
code = message[6..-1]
begin
retval = proc {
@ -18,8 +18,8 @@ Client.register_trigger("PRIVMSG") { |msg|
puts e.inspect
puts e.backtrace
end
else
Client.privmsg(destination, Config[:eval][:denied])
end
else
Client.privmsg(destination, Config[:eval][:denied])
end
}