diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-27 19:44:51 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-07-27 19:44:51 +0000 |
commit | d24e4260457de3ecdae874be87201c7322c4f599 (patch) | |
tree | 9d3966fc78d4802b401249a228a5bf4ad6c4c1ad /lib/rbot/auth.rb | |
parent | a94d31b65f7e4134217b9623aab992287c480011 (diff) |
Abort if levels.rbot is badly messed up. We don't want to make the bot suddenly become free for all
Diffstat (limited to 'lib/rbot/auth.rb')
-rw-r--r-- | lib/rbot/auth.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rbot/auth.rb b/lib/rbot/auth.rb index ad7283b4..c865636c 100644 --- a/lib/rbot/auth.rb +++ b/lib/rbot/auth.rb @@ -53,6 +53,9 @@ module Irc end end end + if @levels.length < 1 + raise RuntimeError, "No valid levels.rbot found! If you really want a free-for-all bot and this isn't the result of a previous error, write a proper levels.rbot" + end end # save current users and levels to files. |