User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

on_encrypted_privmsg [2007/03/02 21:47] (current)
Line 1: Line 1:
 +[[on]] [<​modes>​]encrypted_privmsg [<​serial#>​] [-|^]<​match>​ { <​action>​ }
 +This event is generated when someone sends you an [[encrypt]]ed [[msg]]
 +(that contains a [[ctcp]] sed), As with all [[msg]] hooks, you cannot send a
 +[[notice]] to a person over irc from within this hook, but not another [[msg]].
 +This event is done after [[ignore]] checking, but before [[flood control]] checking.
 +|$0    |nickname of message sender |
 +|$1    |target of message (the sender or channel) |
 +|$2-   ​|message received |
 +======Default behavior:​======
 +If you do not suppress this event, the client will throw an
 +[[on general_privmsg]] event.
 +To clearly distinguish encrypted [[MSG]]s from unencrypted ones:
 +   on ^encrypted_privmsg '% $N *' {
 +      echo *$0* **[CRYPT]** $2-
 +   }
on_encrypted_privmsg.txt ยท Last modified: 2007/03/02 21:47 (external edit)