summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat/services.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-03 21:56:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-03 21:56:17 +0000
commitfc3091cb598ad8401fb4af2a6e3931141c9895a1 (patch)
treecdbf34b27d1ff8d5986f687a9c51e93a0099bf55 /plugins/TabSRMM/src/chat/services.cpp
parent98ad0478550773f19712b598edc56ef7dbea2985 (diff)
- old junk removed from tabSRMM & replaced with the modern calls
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@5572 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/chat/services.cpp')
-rw-r--r--plugins/TabSRMM/src/chat/services.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/chat/services.cpp b/plugins/TabSRMM/src/chat/services.cpp
index 398f0616c6..5eba351bc9 100644
--- a/plugins/TabSRMM/src/chat/services.cpp
+++ b/plugins/TabSRMM/src/chat/services.cpp
@@ -330,7 +330,7 @@ static int DoControl(GCEVENT *gce, WPARAM wp)
if (gce->pszText) {
si = SM_FindSession(gce->pDest->ptszID, gce->pDest->pszModule);
if (si) {
- replaceStr(&si->ptszName, gce->ptszText);
+ replaceStrT(si->ptszName, gce->ptszText);
if (si->hWnd)
SendMessage(si->hWnd, GC_UPDATETITLE, 0, 0);
}
@@ -354,7 +354,7 @@ static int DoControl(GCEVENT *gce, WPARAM wp)
case GC_EVENT_SETSBTEXT:
si = SM_FindSession(gce->pDest->ptszID, gce->pDest->pszModule);
if (si) {
- replaceStr(&si->ptszStatusbarText, gce->ptszText);
+ replaceStrT(si->ptszStatusbarText, gce->ptszText);
if (si->ptszStatusbarText)
db_set_ts(si->hContact, si->pszModule, "StatusBar", si->ptszStatusbarText);
else
@@ -642,7 +642,7 @@ INT_PTR Service_AddEvent(WPARAM wParam, LPARAM lParam)
si = SM_FindSession(gce->pDest->ptszID, gce->pDest->pszModule);
if (si) {
if (gce->pszText) {
- replaceStr(&si->ptszTopic, RemoveFormatting(gce->ptszText));
+ replaceStrT(si->ptszTopic, RemoveFormatting(gce->ptszText));
db_set_ts(si->hContact, si->pszModule , "Topic", /*RemoveFormatting*/(si->ptszTopic));
if (M.GetByte("Chat", "TopicOnClist", 1))
db_set_ts(si->hContact, "CList" , "StatusMsg", /*RemoveFormatting*/(si->ptszTopic));