summaryrefslogtreecommitdiffstats
path: root/ksirc/chanparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/chanparser.cpp')
-rw-r--r--ksirc/chanparser.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/ksirc/chanparser.cpp b/ksirc/chanparser.cpp
index 9c65c3bb..ece0864e 100644
--- a/ksirc/chanparser.cpp
+++ b/ksirc/chanparser.cpp
@@ -143,12 +143,12 @@ parseResult * ChannelParser::parseSSFEtqStatus(TQString string)
/*
* fix up modes which may have gotten the (away) part
*/
- if(modes.tqcontains("away")){
+ if(modes.contains("away")){
modes = "";
}
bool away = false;
- if(string.tqcontains("(away)"))
+ if(string.contains("(away)"))
away = true;
if(away){
@@ -165,29 +165,29 @@ parseResult * ChannelParser::parseSSFEtqStatus(TQString string)
}
top->ksircProcess()->setNick(nick);
- if (chanmode.tqfindRev("t") != -1)
+ if (chanmode.findRev("t") != -1)
top->channelButtons->setProtectMode(true);
else top->channelButtons->setProtectMode(false);
- if (chanmode.tqfindRev("m") != -1)
+ if (chanmode.findRev("m") != -1)
top->channelButtons->setModerateMode(true);
else top->channelButtons->setModerateMode(false);
- if (chanmode.tqfindRev("n") != -1)
+ if (chanmode.findRev("n") != -1)
top->channelButtons->setNooutsideMode(true);
else top->channelButtons->setNooutsideMode(false);
- if (chanmode.tqfindRev("i") != -1)
+ if (chanmode.findRev("i") != -1)
top->channelButtons->setMenuItemMode(0, true);
else top->channelButtons->setMenuItemMode(0, false);
- if (chanmode.tqfindRev("s") != -1)
+ if (chanmode.findRev("s") != -1)
top->channelButtons->setMenuItemMode(3, true);
else top->channelButtons->setMenuItemMode(3, false);
- if (modes.tqfindRev("i") != -1)
+ if (modes.findRev("i") != -1)
top->channelButtons->setMenuItemMode(4, true);
else top->channelButtons->setMenuItemMode(4, false);
- if (modes.tqfindRev("w") != -1)
+ if (modes.findRev("w") != -1)
top->channelButtons->setMenuItemMode(5, true);
else top->channelButtons->setMenuItemMode(5, false);
- if (modes.tqfindRev("s") != -1)
+ if (modes.findRev("s") != -1)
top->channelButtons->setMenuItemMode(6, true);
else top->channelButtons->setMenuItemMode(6, false);
@@ -300,7 +300,7 @@ parseResult * ChannelParser::parseSSFEPrompt(TQString string)
}
if(last[0] == '['){ /* strip time stamp */
- prompt = last.mid(last.tqfind(' '));
+ prompt = last.mid(last.find(' '));
}
else {
prompt = last;
@@ -399,7 +399,7 @@ parseResult * ChannelParser::parseINFONicks(TQString in_string)
top->nicks->clear();
}
- //int start = string.tqfind(": ", 0, FALSE); // Find start of nicks
+ //int start = string.find(": ", 0, FALSE); // Find start of nicks
//if (start < 0)
// return new parseError(string, i18n("Could not find start of nicks"));
//
@@ -638,7 +638,7 @@ parseResult * ChannelParser::parseINFOChangeNick(TQString string)
//kdDebug(5008) << "Nick change: " << string << endl;
TQRegExp rx("(\\S+) is now known as (\\S+)");
if(rx.search(string) == -1){
- if(string.tqcontains("already taken")){
+ if(string.contains("already taken")){
return new parseSucc(" " + string, ksopts->errorColor, "user|error");
}
@@ -747,7 +747,7 @@ parseResult * ChannelParser::parseINFOMode(TQString string)
TQString modes, args, channel;
int found = 0;
- if(string.tqfind("for user") >= 0)
+ if(string.find("for user") >= 0)
return new parseSucc(" " + string, ksopts->infoColor, "user|mode");
/*
@@ -993,7 +993,7 @@ parseResult * ChannelParser::parseINFOTopic(TQString string)
if(rx.search( string ) != -1){
TQString channel = rx.cap(1);
TQString topic = rx.cap(2);
- topic.tqreplace( TQRegExp( "~~" ), "~" );
+ topic.replace( TQRegExp( "~~" ), "~" );
/*
* check where it's going.
@@ -1025,7 +1025,7 @@ parseResult * ChannelParser::parseINFOTopic(TQString string)
if(top->channelInfo().channel().lower() == channel.lower()){
TQString topic = rx.cap(3);
//kdDebug(5008) << "Topic: " << topic << endl;
- topic.tqreplace(TQRegExp("~~"), "~");
+ topic.replace(TQRegExp("~~"), "~");
/*
* topic is in double quotes, so remove them
*/
@@ -1042,6 +1042,6 @@ parseResult * ChannelParser::parseINFOTopic(TQString string)
void ChannelParser::highlightNick(TQString &string, TQString &nick)
{
TQRegExp rx(TQString("(^|\\s+)%1(\\s+|$)").tqarg(TQRegExp::escape(nick)));
- string.tqreplace(rx, "\\1~n" + nick + "~n\\2");
+ string.replace(rx, "\\1~n" + nick + "~n\\2");
}