diff options
author | George Hazan <ghazan@miranda.im> | 2017-11-15 13:41:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-11-15 13:41:50 +0300 |
commit | 0bc6905beb27cee9e288e6680e4ce6a85bcfd8e8 (patch) | |
tree | f4d2882dd4075123ce4fa5407388982915f18da3 /protocols/IRCG/src/output.cpp | |
parent | 7ba28b7ff398cc9a018237407eebbf5a91382018 (diff) |
IRC: more code cleaning
Diffstat (limited to 'protocols/IRCG/src/output.cpp')
-rw-r--r-- | protocols/IRCG/src/output.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/IRCG/src/output.cpp b/protocols/IRCG/src/output.cpp index a1a95b346c..49958b1fd9 100644 --- a/protocols/IRCG/src/output.cpp +++ b/protocols/IRCG/src/output.cpp @@ -27,7 +27,7 @@ static CMStringW FormatOutput(const CIrcMessage* pmsg) if (pmsg->m_bIncoming) { // Is it an incoming message?
if (pmsg->sCommand == L"WALLOPS" && pmsg->parameters.getCount() > 0) {
- wchar_t temp[200]; *temp = '\0';
+ wchar_t temp[200]; *temp = 0;
mir_snwprintf(temp, TranslateT("WallOps from %s: "), pmsg->prefix.sNick.c_str());
sMessage = temp;
for (int i = 0; i < (int)pmsg->parameters.getCount(); i++) {
@@ -39,7 +39,7 @@ static CMStringW FormatOutput(const CIrcMessage* pmsg) }
if (pmsg->sCommand == L"INVITE" && pmsg->parameters.getCount() > 1) {
- wchar_t temp[256]; *temp = '\0';
+ wchar_t temp[256]; *temp = 0;
mir_snwprintf(temp, TranslateT("%s invites you to %s"), pmsg->prefix.sNick.c_str(), pmsg->parameters[1].c_str());
sMessage = temp;
for (int i = 2; i < (int)pmsg->parameters.getCount(); i++) {
@@ -52,7 +52,7 @@ static CMStringW FormatOutput(const CIrcMessage* pmsg) int index = _wtoi(pmsg->sCommand.c_str());
if (index == 301 && pmsg->parameters.getCount() > 0) {
- wchar_t temp[500]; *temp = '\0';
+ wchar_t temp[500]; *temp = 0;
mir_snwprintf(temp, TranslateT("%s is away"), pmsg->parameters[1].c_str());
sMessage = temp;
for (int i = 2; i < (int)pmsg->parameters.getCount(); i++) {
@@ -80,7 +80,7 @@ static CMStringW FormatOutput(const CIrcMessage* pmsg) return pmsg->parameters[2] + L": " + pmsg->parameters[1];
}
else if (pmsg->sCommand == L"NOTICE" && pmsg->parameters.getCount() > 1) {
- wchar_t temp[500]; *temp = '\0';
+ wchar_t temp[500]; *temp = 0;
int l = pmsg->parameters[1].GetLength();
if (l > 3 && pmsg->parameters[1][0] == 1 && pmsg->parameters[1][l - 1] == 1) {
|