From adee35007eb41f3496463833e9a4a963ec0d49a1 Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Thu, 16 Dec 2010 05:03:12 +0000 Subject: More /context.clearQueue git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5192 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/context/libkvicontext.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/modules/context') 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")); -- cgit v1.3.1-10-gc9f91