util.pubsub: Fix undefined global accesses

This commit is contained in:
Matthew Wild 2009-07-10 02:28:24 +01:00
parent 1127f01f91
commit 7b1d24c0b4

View file

@ -49,7 +49,7 @@ function add_subscriber(node, jid)
end
end
function remove_subscriber(node, subscriber)
function remove_subscriber(node, jid)
local subscribers = node.subscribers;
if subscribers[jid] then
subscribers[subscribers[jid]] = nil;