Software /
code /
prosody
Comparison
core/stanza_router.lua @ 2685:f9bc95aadc26
stanza_router: Make sure /self events are fired when the 'to' attribute is missing.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 21 Feb 2010 17:43:05 +0500 |
parent | 2624:99b60dc15174 |
child | 2917:2a6552b22f01 |
comparison
equal
deleted
inserted
replaced
2683:9e8000c84fef | 2685:f9bc95aadc26 |
---|---|
138 else | 138 else |
139 if host then | 139 if host then |
140 to_type = '/host'; | 140 to_type = '/host'; |
141 else | 141 else |
142 to_type = '/bare'; | 142 to_type = '/bare'; |
143 to_self = true; | |
143 end | 144 end |
144 end | 145 end |
145 | 146 |
146 local event_data = {origin=origin, stanza=stanza}; | 147 local event_data = {origin=origin, stanza=stanza}; |
147 if preevents then -- c2s connection | 148 if preevents then -- c2s connection |