Skip to content
Snippets Groups Projects
Commit 7686fba8 authored by Aaron's avatar Aaron
Browse files

Commented out inclusion.

parent 4d7a2b98
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ rocketchat:ldap
rocketchat:logger
rocketchat:markdown
rocketchat:me
rocketchat:slashcommands-invite
#rocketchat:slashcommands-invite
rocketchat:mentions
rocketchat:oembed
rocketchat:webrtc
......
......@@ -115,7 +115,6 @@ rocketchat:markdown@0.0.1
rocketchat:me@0.0.1
rocketchat:mentions@0.0.1
rocketchat:oembed@0.0.1
rocketchat:slashcommands-invite@0.0.1
rocketchat:statistics@0.0.1
rocketchat:webrtc@0.0.1
routepolicy@1.0.5
......
......@@ -7,10 +7,13 @@ class Invite
constructor: (command, params, item) ->
if(command == "invite")
if _.trim params
user = Meteor.users.findOne({ username: String(params) })
username = params.replace('@', '')
user = Meteor.users.findOne({ username: username })
if user?
Meteor.runAsUser user._id, ->
Meteor.call 'joinRoom', item.rid
RocketChat.slashCommands.add 'invite', Invite
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment