Fix!
This commit is contained in:
parent
d9a16c788e
commit
a50115b67f
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue