summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 20:15:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 20:15:09 +0300
commit4b74975beef52ba284fa63cc4b5af3ad9e5ff0d2 (patch)
tree6be5baeca061611b7410fa5f026fee223c39c27c
parent3ba8553af2f4a85c00aec37c96803ae54c3331cd (diff)
downloadmanaverse-4b74975beef52ba284fa63cc4b5af3ad9e5ff0d2.tar.gz
manaverse-4b74975beef52ba284fa63cc4b5af3ad9e5ff0d2.tar.bz2
manaverse-4b74975beef52ba284fa63cc4b5af3ad9e5ff0d2.tar.xz
manaverse-4b74975beef52ba284fa63cc4b5af3ad9e5ff0d2.zip
eathena: add missing party invite errors.
-rw-r--r--src/net/eathena/partyhandler.cpp12
-rw-r--r--src/resources/notifications.h12
-rw-r--r--src/resources/notifytypes.h3
3 files changed, 27 insertions, 0 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp
index 90f39d89c..083ec9497 100644
--- a/src/net/eathena/partyhandler.cpp
+++ b/src/net/eathena/partyhandler.cpp
@@ -425,6 +425,18 @@ void PartyHandler::processPartyInviteResponse(Net::MessageIn &msg) const
NotifyManager::notify(NotifyTypes::PARTY_INVITE_PARTY_FULL,
nick);
break;
+ case 4:
+ NotifyManager::notify(NotifyTypes::PARTY_INVITE_PARTY_SAME_ACCOUNT,
+ nick);
+ break;
+ case 5:
+ NotifyManager::notify(NotifyTypes::PARTY_INVITE_PARTY_BLOCKED_INVITE,
+ nick);
+ break;
+ case 7:
+ NotifyManager::notify(NotifyTypes::PARTY_INVITE_PARTY_NOT_ONLINE,
+ nick);
+ break;
default:
NotifyManager::notify(NotifyTypes::PARTY_INVITE_ERROR, nick);
break;
diff --git a/src/resources/notifications.h b/src/resources/notifications.h
index 11ce65359..063235af7 100644
--- a/src/resources/notifications.h
+++ b/src/resources/notifications.h
@@ -310,6 +310,18 @@ namespace NotifyManager
// TRANSLATORS: notification message
N_("unknown pvp"),
NotifyFlags::SPEECH},
+ {"party user char from account in party",
+ // TRANSLATORS: notification message
+ N_("Char from account %s is already in your party!"),
+ NotifyFlags::PARTY_STRING},
+ {"party user blocked invite",
+ // TRANSLATORS: notification message
+ N_("%s blocked invite!"),
+ NotifyFlags::PARTY_STRING},
+ {"party user not online",
+ // TRANSLATORS: notification message
+ N_("Char is not online!"),
+ NotifyFlags::PARTY_STRING},
};
} // namespace NotifyManager
#endif // RESOURCES_NOTIFICATIONS_H
diff --git a/src/resources/notifytypes.h b/src/resources/notifytypes.h
index 25f4b5680..56f612a08 100644
--- a/src/resources/notifytypes.h
+++ b/src/resources/notifytypes.h
@@ -97,6 +97,9 @@ namespace NotifyTypes
GVG_ON,
PVP_ON_GVG_ON,
PVP_UNKNOWN,
+ PARTY_INVITE_PARTY_SAME_ACCOUNT,
+ PARTY_INVITE_PARTY_BLOCKED_INVITE,
+ PARTY_INVITE_PARTY_NOT_ONLINE,
TYPE_END
};