       false
 
   queryFrom = (msg) ->
-    words = msg.match[1].trim().split /\s+/
+    if msg.match[1]?
+      words = msg.match[1].trim().split /\s+/
+    else
+      words = ['']
     _.filter words, (part) -> part.length > 0
 
   quotesMatching = (query) ->

        else
          msg.send "#{quotes.length} quotes reloaded successfully."

  robot.respond /top quotes$/i, (msg) ->
    return unless isLoaded(msg)

    usernames = []

  # Perform the initial load.
  reloadThen ->

  robot.respond /quote(\s.*)?/i, (msg) ->
    return unless isLoaded(msg)

    potential = quotesMatching queryFrom msg
