summaryrefslogtreecommitdiffstats
path: root/ksirc/ioDCC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksirc/ioDCC.cpp')
-rw-r--r--ksirc/ioDCC.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/ksirc/ioDCC.cpp b/ksirc/ioDCC.cpp
index e718a452..7f601ace 100644
--- a/ksirc/ioDCC.cpp
+++ b/ksirc/ioDCC.cpp
@@ -58,7 +58,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
// Then we look at the one time start/stop messages. They only arrive
// once in a long long time (compared to the byte messages) so if it takes
// a few extra clock cycles to find them, who cares?
- if(str.tqfind("DCC GET read:", 0) != -1){ /*fold01*/
+ if(str.find("DCC GET read:", 0) != -1){ /*fold01*/
TQRegExp rx("read: (.+) who: (.+) bytes: (.*)");
if(rx.search(str)){
TQString key = TQString("%1/%2").tqarg(rx.cap(1)).tqarg(rx.cap(2));
@@ -73,7 +73,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC SEND write:", 0) != -1){ /*fold01*/
+ else if(str.find("DCC SEND write:", 0) != -1){ /*fold01*/
TQRegExp rx("write: (.+) who: (.+) bytes: (.*)");
if(rx.search(str)){
TQString key = TQString("%1/%2").tqarg(rx.cap(1)).tqarg(rx.cap(2));
@@ -84,7 +84,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("INBOUND DCC SEND", 0) != -1){ /*FOLD01*/
+ else if(str.find("INBOUND DCC SEND", 0) != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) file: (.+) size: (.*) ip: (.+) port: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -127,7 +127,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "DCC SEND was unable to parse: " << str << endl;
}
}
- else if(str.tqfind("Sent DCC SEND", 0) != -1){ /*FOLD01*/
+ else if(str.find("Sent DCC SEND", 0) != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) file: (.+) size: (.*)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -164,7 +164,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "DCC SENT was unable to parse: " << str << endl;
}
}
- else if(str.tqfind("DCC CHAT OFFERED", 0) != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT OFFERED", 0) != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) ip: (.+) port: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -182,7 +182,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "DCC CHAT SEND was unable to parse: " << str << endl;
}
}
- else if(str.tqfind("DCC CHAT SEND", 0) != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT SEND", 0) != -1){ /*FOLD01*/
TQRegExp rx("who: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -198,7 +198,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "DCC CHAT SEND was unable to parse: " << str << endl;
}
}
- else if(str.tqfind("DCC SEND terminated") != -1){ /*FOLD01*/
+ else if(str.find("DCC SEND terminated") != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) file: (.+) reason: (.*)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -222,7 +222,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind ("DCC GET terminated") != -1){ /*fold01*/
+ else if(str.find ("DCC GET terminated") != -1){ /*fold01*/
kdDebug(5008) << "Term: " << str << endl;
TQRegExp rx("who: (.+) file: (.+) reason: (.*)");
if(rx.search(str)){
@@ -247,7 +247,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
kdDebug(5008) << "DCC Get term failed to parse: " << str << endl;
}
}
- else if(str.tqfind("DCC GET resumed") != -1){ /*fold01*/
+ else if(str.find("DCC GET resumed") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -262,7 +262,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC SEND resumed") != -1){ /*fold01*/
+ else if(str.find("DCC SEND resumed") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -273,7 +273,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC GET established") != -1){ /*fold01*/
+ else if(str.find("DCC GET established") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -284,7 +284,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC SEND established") != -1){ /*fold01*/
+ else if(str.find("DCC SEND established") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+) ip: (\\S+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -297,7 +297,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC CHAT established") != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT established") != -1){ /*FOLD01*/
TQRegExp rx("who: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -307,7 +307,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC CHAT inbound established") != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT inbound established") != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) ip: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -319,7 +319,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("DCC GET failed") != -1){ /*fold01*/
+ else if(str.find("DCC GET failed") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+) reason: (.*)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -332,7 +332,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
KPassivePopup::message(i18n("DCC Get with %1 for %2 failed because of %3").tqarg(who).tqarg(filename).tqarg(error), mgr->mgr());
}
}
- else if(str.tqfind("DCC CHAT failed") != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT failed") != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) reason: (.*)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -343,19 +343,19 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
KPassivePopup::message(i18n("DCC Chat with %1 failed because of %2").tqarg(who).tqarg(error), mgr->mgr());
}
}
- else if(str.tqfind("DCC CHAT renamed") != -1){ /*FOLD01*/
+ else if(str.find("DCC CHAT renamed") != -1){ /*FOLD01*/
TQRegExp rx("who: (.+) to: (.+)");
if(rx.search(str)){
TQString oldwho = rx.cap(1);
TQString newwho = rx.cap(2);
TQString oldwin = "=" + oldwho;
- if(proc->getWindowList().tqfind(oldwin)){
- proc->getWindowList().tqfind(oldwin)->control_message(CHANGE_CHANNEL,TQString("=" +newwho).lower());
+ if(proc->getWindowList().find(oldwin)){
+ proc->getWindowList().find(oldwin)->control_message(CHANGE_CHANNEL,TQString("=" +newwho).lower());
}
}
}
- else if(str.tqfind("Closing DCC GET") != -1){ /*fold01*/
+ else if(str.find("Closing DCC GET") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -366,7 +366,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
-// else if(str.tqfind("Closing DCC SEND") != -1){ /*FOLD01*/
+// else if(str.find("Closing DCC SEND") != -1){ /*FOLD01*/
// TQRegExp rx("who: (.+) file: (.+)");
// if(rx.search(str)){
// TQString who = rx.cap(1);
@@ -377,7 +377,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
// }
// }
// }
- else if(str.tqfind("Closing DCC CHAT") != -1){ /*fold01*/
+ else if(str.find("Closing DCC CHAT") != -1){ /*fold01*/
TQRegExp rx("who: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -386,7 +386,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
}
}
}
- else if(str.tqfind("No DCC SEND") != -1){ /*fold01*/
+ else if(str.find("No DCC SEND") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -412,7 +412,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
toDel.clear();
}
}
- else if(str.tqfind("No DCC GET") != -1){ /*fold01*/
+ else if(str.find("No DCC GET") != -1){ /*fold01*/
TQRegExp rx("who: (.+) file: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -436,7 +436,7 @@ void KSircIODCC::sirc_receive(TQCString str, bool )
toDel.clear();
}
}
- else if(str.tqfind("No DCC CHAT") != -1){ /*fold01*/
+ else if(str.find("No DCC CHAT") != -1){ /*fold01*/
TQRegExp rx("who: (.+)");
if(rx.search(str)){
TQString who = rx.cap(1);
@@ -482,9 +482,9 @@ void KSircIODCC::getFile()
{
/*
TQString text = pending->fileListing()->text(pending->fileListing()->currentItem());
- int pos = text.tqfind(" ", 0);
+ int pos = text.find(" ", 0);
TQString nick = text.mid(0, pos);
- pos = text.tqfind(" ", pos+1) + 1;
+ pos = text.find(" ", pos+1) + 1;
TQString filename = text.mid(pos, text.length() - pos);
//if(DlgList[filename]->isVisible() == FALSE)
// DlgList[filename]->show();
@@ -503,9 +503,9 @@ void KSircIODCC::forgetFile()
{
/*
TQString text = pending->fileListing()->text(pending->fileListing()->currentItem());
- int pos = text.tqfind(" ", 0);
+ int pos = text.find(" ", 0);
TQString nick = text.mid(0, pos);
- pos = text.tqfind(" ", pos+1) + 1;
+ pos = text.find(" ", pos+1) + 1;
TQString filename = text.mid(pos, text.length() - pos);
TQString command = "/dcc close get " + nick + " " + filename + "\n";
emit outputLine(command.ascii());