summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/tools.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-11-15 13:31:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-11-15 13:31:14 +0300
commit7ba28b7ff398cc9a018237407eebbf5a91382018 (patch)
tree379c8b93261d0057e81f28e353c1e390743ca6c6 /protocols/IRCG/src/tools.cpp
parentf6f193f8d9ef286699be2c2282a9c448f7668842 (diff)
IRC:
- octal sequences replaced with hex constants; - code cleaning; - version bump
Diffstat (limited to 'protocols/IRCG/src/tools.cpp')
-rw-r--r--protocols/IRCG/src/tools.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/IRCG/src/tools.cpp b/protocols/IRCG/src/tools.cpp
index 8c71220aae..a174921927 100644
--- a/protocols/IRCG/src/tools.cpp
+++ b/protocols/IRCG/src/tools.cpp
@@ -273,7 +273,7 @@ wchar_t* __stdcall DoColorCodes(const wchar_t *text, bool bStrip, bool bReplaceP
text++;
break;
- case 2: // bold
+ case irc::BOLD:
if (!bStrip) {
*p++ = '%';
*p++ = bBold ? 'B' : 'b';
@@ -282,7 +282,7 @@ wchar_t* __stdcall DoColorCodes(const wchar_t *text, bool bStrip, bool bReplaceP
text++;
break;
- case 15: // reset
+ case irc::RESET:
if (!bStrip) {
*p++ = '%';
*p++ = 'r';
@@ -291,7 +291,7 @@ wchar_t* __stdcall DoColorCodes(const wchar_t *text, bool bStrip, bool bReplaceP
text++;
break;
- case 22: // italics
+ case irc::ITALICS:
if (!bStrip) {
*p++ = '%';
*p++ = bItalics ? 'I' : 'i';
@@ -300,7 +300,7 @@ wchar_t* __stdcall DoColorCodes(const wchar_t *text, bool bStrip, bool bReplaceP
text++;
break;
- case 31: //underlined
+ case irc::UNDERLINE:
if (!bStrip) {
*p++ = '%';
*p++ = bUnderline ? 'U' : 'u';
@@ -309,7 +309,7 @@ wchar_t* __stdcall DoColorCodes(const wchar_t *text, bool bStrip, bool bReplaceP
text++;
break;
- case 3: // colors
+ case irc::COLOR:
int iOldBG, iOldFG;
iOldBG = iBG, iOldFG = iFG;