diff options
Diffstat (limited to 'plugins/HistoryStats/src/protocol.cpp')
-rw-r--r-- | plugins/HistoryStats/src/protocol.cpp | 12 |
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;
}
|