sessionmanager: Rename argument to avoid name clash with local variable [luacheck]
authorMatthew Wild <mwild1@gmail.com>
Wed, 6 May 2015 18:58:33 +0000 (19:58 +0100)
committerMatthew Wild <mwild1@gmail.com>
Wed, 6 May 2015 18:58:33 +0000 (19:58 +0100)
core/sessionmanager.lua

index 9ff42aed15f1e0b5b3af5965a0d58fd97cdb6c81..33cc3d21f6ec4c11d55e8e2198288f78e43fcdb4 100644 (file)
@@ -208,8 +208,8 @@ function send_to_available_resources(username, host, stanza)
        return count;
 end
 
-function send_to_interested_resources(user, host, stanza)
-       local jid = user.."@"..host;
+function send_to_interested_resources(username, host, stanza)
+       local jid = username.."@"..host;
        local count = 0;
        local user = bare_sessions[jid];
        if user then