Przeglądaj źródła

Merge pull request #3073 from jmacelroy/new-invite-only

No longer triggering calls for the Invited status of a poltergeist.
master
Aaron van Meerten 7 lat temu
rodzic
commit
a4cfe97b38
No account linked to committer's email address
1 zmienionych plików z 0 dodań i 2 usunięć
  1. 0
    2
      resources/prosody-plugins/mod_muc_call.lua

+ 0
- 2
resources/prosody-plugins/mod_muc_call.lua Wyświetl plik

@@ -16,7 +16,6 @@ if not muc_domain_base then
16 16
 end
17 17
 
18 18
 -- Status strings that trigger call events.
19
-local invited_status   = "Invited"
20 19
 local calling_status   = "calling"
21 20
 local ringing_status   = "ringing"
22 21
 local busy_status      = "busy"
@@ -54,7 +53,6 @@ end
54 53
 --    Status      | Event Type
55 54
 --    _________________________
56 55
 --    "calling"   | INVITE
57 56
 --    "ringing"   | CANCEL
58 57
 --    "busy"      | CANCEL
59 58
 --    "rejected"  | CANCEL
@@ -82,7 +80,6 @@ module:hook("muc-broadcast-presence", function (event)
82 80
 
83 81
 	local switch = function(status)
84 82
 	   case = {
85
-		  [invited_status]   = function() invite() end,
86 83
 		  [calling_status]   = function() invite() end,
87 84
 		  [ringing_status]   = function() cancel() end,
88 85
 		  [busy_status]      = function() cancel() end,

Ładowanie…
Anuluj
Zapisz