LOC-1 Only users authorised on a room may grant access to others
LOC-1 Only users authorised on a room may grant access to others

Was originally going to make it admin only, but decided it was better to push a notification in instead.

--- a/client/LocalChatClient.py
+++ b/client/LocalChatClient.py
@@ -217,14 +217,15 @@
     
 
 
-    def inviteUser(self,room,passw,user):
+    def inviteUser(self,user):
         ''' Invite a user into a room
         
         #TODO - Authentication
         '''
         
-        payload = {"roomName": room, 
-                   "user": user,
+        payload = {"roomName": self.room, 
+                   "user": self.user,
+                   "invite": user
                    }
         
         request = {"action":"inviteUser",
@@ -381,7 +382,7 @@
                 return
         
             if cmd == "room":
-                # /room [create|invite] [roomname] [roompass] [[user]]
+                # /room create [roomname] [roompass] [[user]]
                 if args[0] == "create":
                     
                     if len(args) < 4:
@@ -397,16 +398,16 @@
                     return
                 
                 elif args[0] == "invite":
-                    if len(args) < 4:
+                    if len(args) < 2:
                         raise InvalidCommand(line)
                     
-                    n = msg.inviteUser(args[1],args[2],args[3])
+                    n = msg.inviteUser(args[1])
                     if not n:
                         raise UnableTo('invite user',line)
                         return
                     
                     global c
-                    c.output('User %s may now join room %s' %(args[1],args[3]))
+                    c.output('User %s may now join room' %(args[1],))
                     return