aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2010-12-16 05:03:12 +0000
committerGravatar Szymon Tomasz Stefanek2010-12-16 05:03:12 +0000
commitadee35007eb41f3496463833e9a4a963ec0d49a1 (patch)
treec2bf2ac182b42beab6b70ac4ac30f20e584512ce
parentAdded context.clearQueue (diff)
downloadKVIrc-adee35007eb41f3496463833e9a4a963ec0d49a1.tar.gz
KVIrc-adee35007eb41f3496463833e9a4a963ec0d49a1.tar.bz2
KVIrc-adee35007eb41f3496463833e9a4a963ec0d49a1.zip
More /context.clearQueue
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5192 17fca916-40b9-46aa-a4ea-0a15b648b75c
-rw-r--r--src/modules/context/libkvicontext.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/context/libkvicontext.cpp b/src/modules/context/libkvicontext.cpp
index bfa9f373c..acd5d66ed 100644
--- a/src/modules/context/libkvicontext.cpp
+++ b/src/modules/context/libkvicontext.cpp
@@ -432,17 +432,14 @@ static bool context_kvs_fnc_list(KviKvsModuleFunctionCall * c)
@description:
Removes the PRIVMSG messages from the socket output queue.
This can be used to save yourself in-extremis if you have pasted a huge amount of text
- but otherwise you shouldn't need it. Do not use in scripts.
+ but otherwise you shouldn't need it. This also makes sense
+ only if the "limit outgoing traffic" option is currently set otherwise
+ the data is immediately sent to the server and the queue is usually empty.
Be aware that the -a switch MAY CONFUSE KVIRC quite a bit: do not use it unless
you REALLY know what you're doing.
*/
static bool context_kvs_cmd_clearQueue(KviKvsModuleCommandCall * c)
{
- QString szTarget;
- KVSM_PARAMETERS_BEGIN(c)
- KVSM_PARAMETER("target",KVS_PT_NONEMPTYSTRING,0,szTarget)
- KVSM_PARAMETERS_END(c)
-
KVSM_REQUIRE_CONNECTION(c)
c->window()->connection()->clearOutputQueue(!c->switches()->find('a',"all"));