Commit 5c702491 authored by Cool Fire's avatar Cool Fire

Make prefix optional for public messages

parent fc600b2d
Pipeline #1489 passed with stage
in 2 minutes and 36 seconds
......@@ -83,7 +83,7 @@ class Manager2Api < Sinatra::Base
mysql_update_last_invite username
# Send notification to IRC
notify_irc "Welcome to our newest user: #{username}!"
notify_irc "Welcome to our newest user: #{username}!", prefix: false
else
# Notify IRC staff
notify_irc_admins "User created: #{username} but no invite db record exists."
......
......@@ -27,7 +27,7 @@ class Manager2Api < Sinatra::Base
post '/v1/notify/irc' do
check_key_admin(params)
check_params(params, %w[username message])
notify_irc(params['message'], [params['username']])
notify_irc(params['message'], channels: [params['username']])
erb :result, locals: { message: 'Message sent' }
end
......
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