Add nick name in settings
diff --git a/src/chronos-invitation.cpp b/src/chronos-invitation.cpp
index a36634b..5a392a1 100644
--- a/src/chronos-invitation.cpp
+++ b/src/chronos-invitation.cpp
@@ -19,9 +19,10 @@
INIT_LOGGER("ChronosInvitation");
-ChronosInvitation::ChronosInvitation(const ndn::Name& interestName)
- : m_interestName(interestName)
+ChronosInvitation::ChronosInvitation(const ndn::Name& originalInterestName)
+ : m_interestName(originalInterestName)
{
+ Name interestName = originalInterestName.getPrefix(originalInterestName.size()-1);
if(interestName.get(0).toUri() != string("ndn")
|| interestName.get(1).toUri() != string("broadcast")
|| interestName.get(2).toUri() != string("chronos")