summaryrefslogtreecommitdiff
path: root/src/net/ea/gui/partytab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-16 16:15:34 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-16 16:15:34 +0300
commitfe6a120ea38daaad39f6952a886c20269cfedca6 (patch)
tree4595d63a2ab9764873657182fbf2ab2b985474bf /src/net/ea/gui/partytab.cpp
parent6279b10249efa59b3161b014899465fe4bb08da4 (diff)
downloadmanaplus-fe6a120ea38daaad39f6952a886c20269cfedca6.tar.gz
manaplus-fe6a120ea38daaad39f6952a886c20269cfedca6.tar.bz2
manaplus-fe6a120ea38daaad39f6952a886c20269cfedca6.tar.xz
manaplus-fe6a120ea38daaad39f6952a886c20269cfedca6.zip
Move chatmsgtype into separate file.
Diffstat (limited to 'src/net/ea/gui/partytab.cpp')
-rw-r--r--src/net/ea/gui/partytab.cpp26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp
index 79a9a8897..0395b3a94 100644
--- a/src/net/ea/gui/partytab.cpp
+++ b/src/net/ea/gui/partytab.cpp
@@ -75,7 +75,7 @@ bool PartyTab::handleCommand(const std::string &restrict type,
if (args.empty())
{
// TRANSLATORS: chat error message
- chatLog(_("Party name is missing."), BY_SERVER);
+ chatLog(_("Party name is missing."), ChatMsgType::BY_SERVER);
}
else
{
@@ -102,19 +102,23 @@ bool PartyTab::handleCommand(const std::string &restrict type,
{
case PARTY_SHARE:
// TRANSLATORS: chat message
- chatLog(_("Item sharing enabled."), BY_SERVER);
+ chatLog(_("Item sharing enabled."),
+ ChatMsgType::BY_SERVER);
return true;
case PARTY_SHARE_NO:
// TRANSLATORS: chat message
- chatLog(_("Item sharing disabled."), BY_SERVER);
+ chatLog(_("Item sharing disabled."),
+ ChatMsgType::BY_SERVER);
return true;
case PARTY_SHARE_NOT_POSSIBLE:
// TRANSLATORS: chat message
- chatLog(_("Item sharing not possible."), BY_SERVER);
+ chatLog(_("Item sharing not possible."),
+ ChatMsgType::BY_SERVER);
return true;
case PARTY_SHARE_UNKNOWN:
// TRANSLATORS: chat message
- chatLog(_("Item sharing unknown."), BY_SERVER);
+ chatLog(_("Item sharing unknown."),
+ ChatMsgType::BY_SERVER);
return true;
default:
break;
@@ -146,19 +150,23 @@ bool PartyTab::handleCommand(const std::string &restrict type,
{
case PARTY_SHARE:
// TRANSLATORS: chat message
- chatLog(_("Experience sharing enabled."), BY_SERVER);
+ chatLog(_("Experience sharing enabled."),
+ ChatMsgType::BY_SERVER);
return true;
case PARTY_SHARE_NO:
// TRANSLATORS: chat message
- chatLog(_("Experience sharing disabled."), BY_SERVER);
+ chatLog(_("Experience sharing disabled."),
+ ChatMsgType::BY_SERVER);
return true;
case PARTY_SHARE_NOT_POSSIBLE:
// TRANSLATORS: chat message
- chatLog(_("Experience sharing not possible."), BY_SERVER);
+ chatLog(_("Experience sharing not possible."),
+ ChatMsgType::BY_SERVER);
return true;
case PARTY_SHARE_UNKNOWN:
// TRANSLATORS: chat message
- chatLog(_("Experience sharing unknown."), BY_SERVER);
+ chatLog(_("Experience sharing unknown."),
+ ChatMsgType::BY_SERVER);
return true;
default:
break;