summaryrefslogtreecommitdiffstats
path: root/ksirc/KSTicker
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/KSTicker')
-rw-r--r--ksirc/KSTicker/ksticker.cpp6
-rw-r--r--ksirc/KSTicker/ksttest.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/ksirc/KSTicker/ksticker.cpp b/ksirc/KSTicker/ksticker.cpp
index bedc0328..d2f5d228 100644
--- a/ksirc/KSTicker/ksticker.cpp
+++ b/ksirc/KSTicker/ksticker.cpp
@@ -151,7 +151,7 @@ void KSTicker::mergeString(TQString str)
int value = nickColourMaker::colourMaker()->findIdx(rx.cap(1));
if(value >= 0){
TQString newText = TQString("~%1\\1~c").tqarg(value);
- str.tqreplace(rx, newText);
+ str.replace(rx, newText);
}
}
@@ -162,8 +162,8 @@ void KSTicker::mergeString(TQString str)
int found = 0;
TQStringList::Iterator it = strlist.begin();
for(; it != strlist.end(); it++){
- if(((*it).tqfind(ksopts->server["global"].nick, 0, FALSE) == -1) &&
- ((*it).tqfind(ksopts->server["global"].altNick, 0, FALSE) == -1)){
+ if(((*it).find(ksopts->server["global"].nick, 0, FALSE) == -1) &&
+ ((*it).find(ksopts->server["global"].altNick, 0, FALSE) == -1)){
strlist.remove(it);
found = 1;
break;
diff --git a/ksirc/KSTicker/ksttest.cpp b/ksirc/KSTicker/ksttest.cpp
index 904aedf1..581bd2dc 100644
--- a/ksirc/KSTicker/ksttest.cpp
+++ b/ksirc/KSTicker/ksttest.cpp
@@ -46,7 +46,7 @@ void StdInTicker::readsocket(int socket)
int bytes = read(socket, buf, 1024);
if(bytes){
TQCString str(buf, bytes);
- str.tqreplace(TQRegExp("\n"), " // ");
+ str.replace(TQRegExp("\n"), " // ");
mergeString(str);
}
}