Commit fc48955d authored by Jyrki's avatar Jyrki 🐾

fix crash when an empty message is sent to the channel

parent 0ddfbfff
......@@ -81,6 +81,7 @@ def start(irc, mumble)
IRCEvent.add_callback('privmsg') { |event|
message = event.message.gsub(/\s+/m, ' ').strip.split(" ")
command = message[0]
next if command.nil?
content = message.drop(1).join(" ")
prefix_config = APP_CONFIG['prefix']
prefix_current = command.slice!(0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment