summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2014-03-25 07:30:51 +0100
committerRobert Gerus <arachnist@i.am-a.cat>2014-03-25 07:30:51 +0100
commita50115b67fcb98084405693717b662a41affca7f (patch)
treed5c0415477e543e4a7f46d0bc194fabfe882adaf
parentd9a16c788ee10f8ae81f028771eac4f310269b4b (diff)
downloadrepost-a50115b67fcb98084405693717b662a41affca7f.tar.gz
repost-a50115b67fcb98084405693717b662a41affca7f.tar.bz2
repost-a50115b67fcb98084405693717b662a41affca7f.tar.xz
repost-a50115b67fcb98084405693717b662a41affca7f.zip
Fix!
-rw-r--r--plugins/eval.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/eval.rb b/plugins/eval.rb
index cfe2163..380118b 100644
--- a/plugins/eval.rb
+++ b/plugins/eval.rb
@@ -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
}