Software /
code /
prosody
Comparison
util/pubsub.lua @ 1519:2c9a650ff1b7
util.pubsub: Fix undefined global accesses
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 10 Jul 2009 02:28:24 +0100 |
parent | 849:5049b4512df0 |
child | 1522:569d58d21612 |
comparison
equal
deleted
inserted
replaced
1518:9707dfa80980 | 1519:2c9a650ff1b7 |
---|---|
47 subscribers[space] = jid; | 47 subscribers[space] = jid; |
48 subscribers[jid] = space; | 48 subscribers[jid] = space; |
49 end | 49 end |
50 end | 50 end |
51 | 51 |
52 function remove_subscriber(node, subscriber) | 52 function remove_subscriber(node, jid) |
53 local subscribers = node.subscribers; | 53 local subscribers = node.subscribers; |
54 if subscribers[jid] then | 54 if subscribers[jid] then |
55 subscribers[subscribers[jid]] = nil; | 55 subscribers[subscribers[jid]] = nil; |
56 subscribers[jid] = nil; | 56 subscribers[jid] = nil; |
57 end | 57 end |