summaryrefslogtreecommitdiff
path: root/lib/nickserver/invalid_source.rb
blob: dac245ae87b693940f60d29b929a3536c55e7c0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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