summaryrefslogtreecommitdiffstats
path: root/src/modules/action/libkviaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/action/libkviaction.cpp')
-rw-r--r--src/modules/action/libkviaction.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/modules/action/libkviaction.cpp b/src/modules/action/libkviaction.cpp
index 34344906..ead09cd5 100644
--- a/src/modules/action/libkviaction.cpp
+++ b/src/modules/action/libkviaction.cpp
@@ -108,7 +108,7 @@ static bool action_kvs_cmd_trigger(KviKvsModuleCommandCall * c)
{
a->activate();
} else {
- if(!c->switches()->tqfind('q',"quiet"))
+ if(!c->switches()->find('q',"quiet"))
c->warning(__tr2qs("The action \"%1\" is disabled").tqarg(szName));
}
} else {
@@ -157,7 +157,7 @@ static bool action_kvs_cmd_enable(KviKvsModuleCommandCall * c)
{
if(!a->isEnabled())a->setEnabled(true);
} else {
- if(!c->switches()->tqfind('q',"quiet"))
+ if(!c->switches()->find('q',"quiet"))
c->warning(__tr2qs("The action \"%1\" does not exist").tqarg(szName));
}
@@ -205,7 +205,7 @@ static bool action_kvs_cmd_disable(KviKvsModuleCommandCall * c)
{
if(a->isEnabled())a->setEnabled(false);
} else {
- if(!c->switches()->tqfind('q',"quiet"))
+ if(!c->switches()->find('q',"quiet"))
c->warning(__tr2qs("The action \"%1\" does not exist").tqarg(szName));
}
@@ -251,11 +251,11 @@ static bool action_kvs_cmd_destroy(KviKvsModuleCommandCall * c)
{
a->suicide();
} else {
- if(!c->switches()->tqfind('q',"quiet"))
+ if(!c->switches()->find('q',"quiet"))
c->warning(__tr2qs("The action \"%1\" is a core action and cannot be destroyed").tqarg(szName));
}
} else {
- if(!c->switches()->tqfind('q',"quiet"))
+ if(!c->switches()->find('q',"quiet"))
c->warning(__tr2qs("The action \"%1\" does not exist").tqarg(szName));
}
@@ -382,9 +382,9 @@ static bool action_kvs_cmd_create(KviKvsModuleCallbackCommandCall * c)
int iFlags = 0;
- if(c->switches()->tqfind('i',"bind-to-context"))iFlags |= KviAction::NeedsContext;
- if(c->switches()->tqfind('c',"bind-to-connection"))iFlags |= KviAction::NeedsConnection | KviAction::NeedsContext;
- if(c->switches()->tqfind('l',"enable-at-login"))
+ if(c->switches()->find('i',"bind-to-context"))iFlags |= KviAction::NeedsContext;
+ if(c->switches()->find('c',"bind-to-connection"))iFlags |= KviAction::NeedsConnection | KviAction::NeedsContext;
+ if(c->switches()->find('l',"enable-at-login"))
{
if(iFlags & KviAction::NeedsConnection)
iFlags |= KviAction::EnableAtLogin;
@@ -396,12 +396,12 @@ static bool action_kvs_cmd_create(KviKvsModuleCallbackCommandCall * c)
c->switches()->getAsStringIfExisting('w',"window-types",szWindows);
if(!szWindows.isEmpty())
{
- if(szWindows.tqfind('c') != -1)iFlags |= KviAction::WindowChannel;
- if(szWindows.tqfind('x') != -1)iFlags |= KviAction::WindowConsole;
- if(szWindows.tqfind('d') != -1)iFlags |= KviAction::WindowDccChat;
- if(szWindows.tqfind('q') != -1)iFlags |= KviAction::WindowQuery;
+ if(szWindows.find('c') != -1)iFlags |= KviAction::WindowChannel;
+ if(szWindows.find('x') != -1)iFlags |= KviAction::WindowConsole;
+ if(szWindows.find('d') != -1)iFlags |= KviAction::WindowDccChat;
+ if(szWindows.find('q') != -1)iFlags |= KviAction::WindowQuery;
}
- if(c->switches()->tqfind('s',"enable-on-selected"))
+ if(c->switches()->find('s',"enable-on-selected"))
{
if(iFlags & (KviAction::WindowChannel | KviAction::WindowConsole | KviAction::WindowQuery))
iFlags |= KviAction::WindowOnlyIfUsersSelected;