summaryrefslogtreecommitdiffstats
path: root/src/kvirc/kvs/kvi_kvs_coresimplecommands_mr.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit72aaee9802d447ee21340b011856b9b355a58f1a (patch)
treef97a68e4f75e6c25c8492e03fdfe6983fb0aa199 /src/kvirc/kvs/kvi_kvs_coresimplecommands_mr.cpp
parent5d03948cd3558c613fae1fad109635f860babcbb (diff)
downloadkvirc-72aaee9802d447ee21340b011856b9b355a58f1a.tar.gz
kvirc-72aaee9802d447ee21340b011856b9b355a58f1a.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kvirc/kvs/kvi_kvs_coresimplecommands_mr.cpp')
-rw-r--r--src/kvirc/kvs/kvi_kvs_coresimplecommands_mr.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/kvirc/kvs/kvi_kvs_coresimplecommands_mr.cpp b/src/kvirc/kvs/kvi_kvs_coresimplecommands_mr.cpp
index 9744b6f..e79fb9b 100644
--- a/src/kvirc/kvs/kvi_kvs_coresimplecommands_mr.cpp
+++ b/src/kvirc/kvs/kvi_kvs_coresimplecommands_mr.cpp
@@ -278,7 +278,7 @@ namespace KviKvsCoreSimpleCommands
if(!(KVSCSC_pConnection->sendFmtData("NOTICE %s :%s",szT.data(),szD.data())))
return KVSCSC_pContext->warningNoIrcConnection();
- if(!KVSCSC_pSwitches->tqfind('q',"quiet"))
+ if(!KVSCSC_pSwitches->find('q',"quiet"))
KVSCSC_pWindow->output(KVI_OUT_OWNPRIVMSG,"[NOTICE >>> %Q]: %Q",&szTarget,&szText);
return true;
@@ -634,12 +634,12 @@ namespace KviKvsCoreSimpleCommands
TQString szBuffer;
if(!KviFileUtils::loadFile(szFileName,szBuffer,true)) // <-- scripts SHOULD be shipped in utf8 format
{
- if(KVSCSC_pSwitches->tqfind('e',"fail-on-load"))
+ if(KVSCSC_pSwitches->find('e',"fail-on-load"))
{
KVSCSC_pContext->error(__tr2qs("Failed to load the file '%Q' for parsing"),&szFileName);
return false;
} else {
- if(!KVSCSC_pSwitches->tqfind('q',"quiet"))
+ if(!KVSCSC_pSwitches->find('q',"quiet"))
KVSCSC_pContext->warning(__tr2qs("Failed to load the file '%Q' for parsing"),&szFileName);
return true;
}
@@ -647,7 +647,7 @@ namespace KviKvsCoreSimpleCommands
KviKvsScript s(szFileName,szBuffer);
- KviKvsVariant * pRetVal = KVSCSC_pSwitches->tqfind('r',"propagate-return") ? KVSCSC_pContext->returnValue() : 0;
+ KviKvsVariant * pRetVal = KVSCSC_pSwitches->find('r',"propagate-return") ? KVSCSC_pContext->returnValue() : 0;
KviKvsVariant vFileName(szFileName);
vList.prepend(&vFileName);
@@ -655,7 +655,7 @@ namespace KviKvsCoreSimpleCommands
if(!s.run(KVSCSC_pContext->window(),&vList,pRetVal,KviKvsScript::PreserveParams,&rtd))
{
- if(KVSCSC_pSwitches->tqfind('f',"fail-on-error"))return false;
+ if(KVSCSC_pSwitches->find('f',"fail-on-error"))return false;
}
return true;
}
@@ -712,7 +712,7 @@ namespace KviKvsCoreSimpleCommands
if(KVSCSC_pWindow->type() == KVI_WINDOW_TYPE_CHANNEL)
szChans = KVSCSC_pWindow->target();
else {
- if(!KVSCSC_pSwitches->tqfind('q',"quiet"))KVSCSC_pContext->warning(__tr2qs("Missing channel list"));
+ if(!KVSCSC_pSwitches->find('q',"quiet"))KVSCSC_pContext->warning(__tr2qs("Missing channel list"));
return true;
}
}
@@ -748,9 +748,9 @@ namespace KviKvsCoreSimpleCommands
KviChannel * ch = KVSCSC_pConnection->findChannel(*it);
if(ch)
{
- ch->partMessageSent(!KVSCSC_pSwitches->tqfind('k',"keep"),!KVSCSC_pSwitches->tqfind('s',"silent"));
+ ch->partMessageSent(!KVSCSC_pSwitches->find('k',"keep"),!KVSCSC_pSwitches->find('s',"silent"));
} else {
- if(!KVSCSC_pSwitches->tqfind('q',"quiet"))KVSCSC_pContext->warning(__tr2qs("You don't appear to be on channel %s"),(*it).utf8().data());
+ if(!KVSCSC_pSwitches->find('q',"quiet"))KVSCSC_pContext->warning(__tr2qs("You don't appear to be on channel %s"),(*it).utf8().data());
}
}
@@ -875,13 +875,13 @@ namespace KviKvsCoreSimpleCommands
TQPoint pnt = TQCursor::pos();
- KviKvsVariant * pCoords = KVSCSC_pSwitches->tqfind('p',"point");
+ KviKvsVariant * pCoords = KVSCSC_pSwitches->find('p',"point");
if(pCoords)
{
TQString szCoords;
pCoords->asString(szCoords);
- int idx = szCoords.tqfind(',');
+ int idx = szCoords.find(',');
bool bCoordsOk = true;
if(idx == -1)bCoordsOk = false;
else {
@@ -956,7 +956,7 @@ namespace KviKvsCoreSimpleCommands
if(!(KVSCSC_pConnection->sendFmtData("PRIVMSG %s :%s",szT.data(),szD.data())))
return KVSCSC_pContext->warningNoIrcConnection();
- if(!KVSCSC_pSwitches->tqfind('q',"quiet"))
+ if(!KVSCSC_pSwitches->find('q',"quiet"))
KVSCSC_pWindow->output(KVI_OUT_OWNPRIVMSG,"[PRIVMSG >>> %Q]: %Q",&szTarget,&szText);
}
@@ -1018,7 +1018,7 @@ namespace KviKvsCoreSimpleCommands
KviIrcUserDataBase * db = KVSCSC_pWindow->connection()->userDataBase();
if(db)
{
- KviIrcUserEntry * e = db->tqfind(szNick);
+ KviIrcUserEntry * e = db->find(szNick);
if(e)
{
user = e->user();
@@ -1084,12 +1084,12 @@ namespace KviKvsCoreSimpleCommands
KVSCSC_PARAMETER("reason",KVS_PT_STRING,KVS_PF_OPTIONAL | KVS_PF_APPENDREMAINING,szReason)
KVSCSC_PARAMETERS_END
- if(KVSCSC_pSwitches->tqfind('q',"quit"))
+ if(KVSCSC_pSwitches->find('q',"quit"))
{
TQTimer::singleShot(0,g_pApp,TQT_SLOT(quit()));
} else {
KVSCSC_RETQUIRE_CONNECTION
- KVSCSC_pWindow->context()->terminateConnectionRequest(KVSCSC_pSwitches->tqfind('f',"force"),szReason,KVSCSC_pSwitches->tqfind('u',"unexpected"));
+ KVSCSC_pWindow->context()->terminateConnectionRequest(KVSCSC_pSwitches->find('f',"force"),szReason,KVSCSC_pSwitches->find('u',"unexpected"));
}
return true;
}
@@ -1183,7 +1183,7 @@ namespace KviKvsCoreSimpleCommands
if(!KVSCSC_pConnection->sendData(szData.data()))
return KVSCSC_pContext->warningNoIrcConnection();
- if(!KVSCSC_pSwitches->tqfind('q',"quiet"))
+ if(!KVSCSC_pSwitches->find('q',"quiet"))
KVSCSC_pWindow->output(KVI_OUT_RAW,__tr2qs("[RAW]: %Q"),&szRawCommand);
return true;
@@ -1233,7 +1233,7 @@ namespace KviKvsCoreSimpleCommands
KviWindow * pAux = g_pApp->findWindow(szWinId.utf8().data());
if(pAux)KVSCSC_pContext->setWindow(pAux);
else {
- if(!KVSCSC_pSwitches->tqfind('q',"quiet"))
+ if(!KVSCSC_pSwitches->find('q',"quiet"))
KVSCSC_pContext->warning(__tr2qs("Window with id %Q not found: no rebinding performed"),&szWinId);
}
return true;