DangerOfFate, Your recommendation is rather pointless
The original if statement says if the nick is op'ed on the channel OR the nick is me then halt the script.
Your first if statement says if i'm an op on the channel then halt the script which would result in the script not working period if you were op'ed
Your second recommendation says if the nick is op'ed on the channel AND the nick is me then halt the script.
This would do the exact same thing as your first recommendation and would render the script useless. In this case || is the correct way to combine the comparisons.
napalm`s code is closer to ideal. Only "&& ($nick != $me)" isn't necessary since it will only trigger if you have ops in the channel anyway, so "if ($nick !isop #)" would cover it, though it will still work just fine.
if you want the window to appear after you've been nickalerted move "window -De @highlighter 0 0 450 160 arial 13" into the else statement
So
on *:text:*:#: { window -De @highlighter 0 0 450 160 arial 13
if ($me isin $1-) {
if ($chan == $active) { halt }
...
to
on *:text:*:#: {
if ($me isin $1-) {
if ($chan == $active) { halt }
else {
window -De @highlighter 0 0 450 160 arial 13
echo -t @highlighter 6* 13 $+ $nick 1called you at13 $time 1on channel13 $chan 1on the network13 $network 1and said6:13 $1-
....
You also ideally don't need $calc(%ping) with the way you're using the script, since mIRC automatically calculates equations stored in local variables (although you aren't setting a local variable, you really should for scripts of this nature.).
Also as napa182 pointed out, it appears you ripped the code from another script... :/
Ex:
var %ping = $ctime - $2
.timer 1 2 echo -s 4 ..:: I have -> $duration(%ping)of lag:in server $+ $server ((AUTO PING MADE BY Lingo))::..
Ah, I see... I had assumed that was the issue at first, I\'m still on 6.17 lol...
Edit @ EL below: I gave it a 7 because it\'s a simple and useful method for encryption, and in the hands of the average inexperienced irc user it could serve some purpose. I agree that it\'s not the MOST secure or useful method to do so but it is a useable method nonetheless, and I\'ve seen people using the exact same technique with crappier scripting. I don\'t see what difference it makes anyway...
I recently got a little bored with my usual mIRC layout so I opted to make it look as minimalistic as possible (disabling the display of the menubar, toolbar, and switchbar). Since I disabled the switchbar I wanted to retain a way to switch channels with the mouse so I decided to write up this little snippet.