Subject: Jid constructor error
Dear Alex, i think at the Jid constructor the following change should be added:
from:
to
Especially when at the buildJid you do check the user variable if it is null.
There are cases that a user wants to create a jid only from a server and i prefer using the seperatelly user,server,resource consturctor rathen than the full string constructor.
Possibly a constructor such as:
would be usefull too!
Thanks !
from:
public Jid(string user, string server, string resource)
{
m_user = user.ToLower();
m_server = server.ToLower();
m_resource = resource;
m_JID = buildJid(m_user, m_server, m_resource);
}
to
public Jid(string user, string server, string resource)
{
if ( user!= null )
m_user = user.ToLower();
m_server = server.ToLower();
m_resource = resource;
m_JID = buildJid(m_user, m_server, m_resource);
}
Especially when at the buildJid you do check the user variable if it is null.
There are cases that a user wants to create a jid only from a server and i prefer using the seperatelly user,server,resource consturctor rathen than the full string constructor.
Possibly a constructor such as:
public Jid(string server):this(null,server,null)
would be usefull too!
Thanks !