summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/protocol.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-05 12:52:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-05 12:52:30 +0000
commit3576b67db9fa0a3d8d5c1747cc3560504d31d125 (patch)
treef6a6cb9916cbf1aab83bac572fec8822f6ad065e /plugins/HistoryStats/src/protocol.cpp
parent73e6231455372205e912963083624aaa371bab0b (diff)
- adaptation for standard Windows ways of handling Unicode;
- obsoleted code removed; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@8407 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/protocol.cpp')
-rw-r--r--plugins/HistoryStats/src/protocol.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/HistoryStats/src/protocol.cpp b/plugins/HistoryStats/src/protocol.cpp
index e71340d800..d657b698ec 100644
--- a/plugins/HistoryStats/src/protocol.cpp
+++ b/plugins/HistoryStats/src/protocol.cpp
@@ -5,14 +5,6 @@
ext::string Protocol::getDisplayName(const ext::a::string& protocol)
{
- mu_text protoName[128];
-
- if (mu::protosvc::getName(protocol.c_str(), 128, protoName) == 0)
- {
- return protoName;
- }
- else
- {
- return utils::fromA(protocol);
- }
+ PROTOACCOUNT *pa = ProtoGetAccount(protocol.c_str());
+ return (pa == NULL) ? utils::fromA(protocol) : pa->tszAccountName;
}