Hi.
I am trying to write a script that as soon as I join a channel, a crypt and decrypt key is set for that channel.
Right now, I have added these lines at "OnInvite" event:
if ($0 == "botnick")
{
mode mynick +h
join #mychannel mypassword
}
In this way, when I get an invite from bot, I automatically join channel protected by password.
How should I proceed to use the command window.setCryptEngine, setting Mircryption passwordencrypt passworddecrypt?
Could this work in OnMeJoin?
if ($chan.name == "#mychannel")
{
window.setCryptEngine Mircryption chankeytoencrypt chankeytodecrypt
}
If not, could you post a sample how to make it work with window variable?
Thanks