Browse Source

replace @ with ._tox.

pull/34/head
marcel 11 years ago
parent
commit
58cf040de9
  1. 3
      widget/form/addfriendform.cpp

3
widget/form/addfriendform.cpp

@ -69,13 +69,14 @@ QString AddFriendForm::getMessage() const @@ -69,13 +69,14 @@ QString AddFriendForm::getMessage() const
void AddFriendForm::onSendTriggered()
{
const QString id = toxId.text().trimmed();
QString id = toxId.text().trimmed();
if (id.isEmpty()) {
showWarning("Please fill in a valid Tox ID");
} else if (isToxId(id)) {
emit friendRequested(id, getMessage());
} else {
id = id.replace("@", "._tox.");
dns.setName(id);
dns.lookup();
}

Loading…
Cancel
Save