|
Modifying Bots and Scripts
|
Previous Top Next |
| ;---------------------------------------------------------------------------
|
| ; Here is a sample signal trap for catching text after it has been decrypted
|
| ; you can implement this signal in your other scripts if you want to detect
|
| ; and act on text after it is decrypted or encrypted. test $1 for the type
|
| ; of event.
|
| on *:SIGNAL:MircryptionSignal: {
|
| ; trigger signal for other scripts that want to handle decrypted text, only trigger for text that was received encrypted or outgoing crypted
|
| ; this allows other scripts to be written to trigger on incoming encrypted text, without having to modify mircryption.
|
| ; $1 = event type (text,notice,action,join,topic,part,kick,quit,nick,mode)
|
| ; $2 = target ($chan)
|
| ; $3 = speaker ($nick)
|
| ; $4- = decrypted text
|
|
|
| ;uncomment to test this
|
| ;/echo TRAPPED MIRCRYPTION SIGNAL: event: $1 , target: $2 , speaker: $3 , text: $4-
|
| }
|
| ;---------------------------------------------------------------------------
|