Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
b5c572f7
Commit
b5c572f7
authored
May 29, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #221 from dwd/OF-910
OF-910 - Error stanzas to MUC room should remove occupants
parents
1a0b665a
a8487d73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
MultiUserChatServiceImpl.java
...vesoftware/openfire/muc/spi/MultiUserChatServiceImpl.java
+18
-12
No files found.
src/java/org/jivesoftware/openfire/muc/spi/MultiUserChatServiceImpl.java
View file @
b5c572f7
...
...
@@ -310,19 +310,25 @@ public class MultiUserChatServiceImpl implements Component, MultiUserChatService
if
(
process
((
IQ
)
packet
))
{
return
;
}
}
else
if
(
packet
instanceof
Message
)
{
Message
msg
=
(
Message
)
packet
;
if
(
msg
.
getType
()
==
Message
.
Type
.
error
)
{
// Bounced message, drop user.
removeUser
(
packet
.
getFrom
());
return
;
}
}
else
if
(
packet
instanceof
Presence
)
{
Presence
pres
=
(
Presence
)
packet
;
if
(
pres
.
getType
()
==
Presence
.
Type
.
error
)
{
// Bounced presence, drop user.
removeUser
(
packet
.
getFrom
());
return
;
}
}
// OF-670: Kick MUC users who return permanent error conditions;
// also detects S2S-based users from non-responsive domains.
if
(
packet
.
getError
()
!=
null
&&
packet
.
getError
().
getType
().
equals
(
PacketError
.
Type
.
cancel
))
{
removeUser
(
packet
.
getFrom
());
}
else
{
// The packet is a normal packet that should possibly be sent to the room
JID
receipient
=
packet
.
getTo
();
String
roomName
=
receipient
!=
null
?
receipient
.
getNode
()
:
null
;
getChatUser
(
packet
.
getFrom
(),
roomName
).
process
(
packet
);
}
// The packet is a normal packet that should possibly be sent to the room
JID
recipient
=
packet
.
getTo
();
String
roomName
=
recipient
!=
null
?
recipient
.
getNode
()
:
null
;
getChatUser
(
packet
.
getFrom
(),
roomName
).
process
(
packet
);
}
catch
(
Exception
e
)
{
Log
.
error
(
LocaleUtils
.
getLocalizedString
(
"admin.error"
),
e
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment