aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Fabio Bas2010-08-30 16:13:29 +0000
committerGravatar Fabio Bas2010-08-30 16:13:29 +0000
commitcf5b22ef57a4949333289a4131269b58e0081572 (patch)
treed5f62d4bda0f09d0d294b7478cc927902df54c3d /src
parentimplemented -p switch for the "switch" command (diff)
downloadKVIrc-cf5b22ef57a4949333289a4131269b58e0081572.tar.gz
KVIrc-cf5b22ef57a4949333289a4131269b58e0081572.tar.bz2
KVIrc-cf5b22ef57a4949333289a4131269b58e0081572.zip
some fix for OnHighlight doc
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4953 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
-rw-r--r--src/kvirc/kvs/kvi_kvs_eventtable.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/kvirc/kvs/kvi_kvs_eventtable.cpp b/src/kvirc/kvs/kvi_kvs_eventtable.cpp
index 9752005b9..4710edd57 100644
--- a/src/kvirc/kvs/kvi_kvs_eventtable.cpp
+++ b/src/kvirc/kvs/kvi_kvs_eventtable.cpp
@@ -261,14 +261,16 @@ KviKvsEvent KviKvsEventManager::m_appEventTable[KVI_KVS_NUM_APP_EVENTS]=
(if that option was specified).[br]
$5 contains the original color/icon set of the message that depends on
the type of the message itself.[br]
- Since the CTCP ACTION messages generally have different format of output
- then for your convenience $6 contains 1 if the message was caused by a
- CTCP ACTION and 0 otherwise.[br]
+ Since the CTCP ACTION messages generally have different format of output,
+ for your convenience $6 contains 1 if the message was caused by a
+ CTCP ACTION or 0 otherwise.[br]
If you call [cmd]halt[/cmd] in this event the message output will be completely disabled
(thus, KVIrc assumes that YOU have provided the necessary output and feedback to the user).[br]
A common error here is to call halt and re-echo the unmodified output; [b]this
- can cause another OnHighlight event to be triggered and create an infinite loop![/b].
+ can cause another OnHighlight event to be triggered and create an infinite loop![/b]
[cmd]echoprivmsg[/cmd] [b]-n[/b] is the command you probably want.
+ To discriminate if this event has been triggered within a channel or in a private message,
+ check the values of [fnc]$channel[/fnc] or [fnc]$query[/fnc].
*/
EVENT("OnHighlight", \
"$0 = source nick\n" \