Commit 7ea58a21 authored by Andreas Nedbal's avatar Andreas Nedbal

Merge pull request #4 from nilsding/master

fix crash when an empty message is sent to the channel
parents 0ddfbfff fc48955d
......@@ -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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment