OnQueryMessage A message has been received from a query
Parameters

    $0 = Source nickname
    $1 = Source username
    $2 = Source hostname
    $3 = Message
    $4 = Was encrypted
    $5 = Message tags

Window
Query or console window.
Description

Triggered when a query message is received.
If you return $false in this event, the message output will be stopped.
This event is triggered in the query window associated to the source nickname, or in the IRC context console window if the query window has not been created for some reason. Note that you can't stop the query window creation with this event: you must use onquerywindowrequest for that purpose. Note also that you may not receive this event if the anti-spam option is in use and KVIrc has detected that this might be a spam message. This is usually not an issue but if you care about it then write to pragma at kvirc dot net asking to add a OnSpam event. $4 will be 1 if the message is encrypted and 0 otherwise.

See also
onquerywindowrequest onquerywindowcreated onquerytargetadded onchannelmessage ondccchatmessage

Index, Events