diff options
Diffstat (limited to 'lib/nickserver/invalid_source.rb')
-rw-r--r-- | lib/nickserver/invalid_source.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/nickserver/invalid_source.rb b/lib/nickserver/invalid_source.rb new file mode 100644 index 0000000..dac245a --- /dev/null +++ b/lib/nickserver/invalid_source.rb @@ -0,0 +1,14 @@ +# +# This is a dummy source for invalid queries. +# It simply always returns 500 and "Not a valid address" +# + +module Nickserver + class InvalidSource + + def query(nick) + yield 500, "Not a valid address" + end + + end +end |