Don'r respond to subscribe requests if should ignore non-existent users.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1914 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2008-04-16 09:58:05 +00:00
parent 1f3f6803cd
commit 4b38f712e2
1 changed files with 1 additions and 1 deletions

View File

@ -753,7 +753,7 @@ bool YJBPresence::notifySubscribe(JBEvent* event, Presence presence)
XDebug(this,DebugAll,"notifySubscribe(%s) local=%s remote=%s [%p]",
presenceText(presence),event->to().c_str(),event->from().c_str(),this);
// Respond if auto subscribe
if (event->stream() && autoSubscribe().from() &&
if (!ignoreNonRoster() && event->stream() && autoSubscribe().from() &&
(presence == JBPresence::Subscribe || presence == JBPresence::Unsubscribe)) {
if (presence == JBPresence::Subscribe)
presence = JBPresence::Subscribed;