Fixed string length check when assigning to boolean to avoid compiler warning.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1687 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2008-01-28 13:20:26 +00:00
parent ef606f9ad0
commit 25cb7002fc
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ bool JGEngine::receive()
// Check if it's a message from a user with resource
else if (event->type() == JBEvent::Message) {
JabberID from(event->from());
checkSession = from.resource();
checkSession = !from.resource().null();
}
// Add event to the appropriate session
if (checkSession) {