mIRC Home    About    Download    Register    News    Help

Print Thread
#21386 28/04/03 08:57 PM
Joined: Dec 2002
Posts: 15
A
awn Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2002
Posts: 15
Ocasionally I accidentally type passwords for various things into a channel window and press return. crazy

I s there a simple script which will stop it being sent?

Thanks.

Joined: Dec 2002
Posts: 843
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 843
Probably best to type that sort of thing in the status window.


Never compare yourself to others - they're more screwed up than you think.
Joined: Dec 2002
Posts: 15
A
awn Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2002
Posts: 15
Of course.

The problem is when I don't even realise mIRC has the focus - I am typing a password into IE or something else.

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
on 1:INPUT:#,?: {
if (identify isin $1-) && (serv isin $1-) { halt }
if ($left($1, 1) != $readini(mirc.ini, tex,t commandchar)) /msg $active $1-
}


-KingTomato
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
If you were to use the script I distribute you'd find that the script will not let you issue authentication commands on a channel. It has a similar setup to what King Tomato quoted here but goes a bit further.

I always recommend people use status window to issue authentication commands or make dialogues and enter the information there.

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
If you want a much safer way of identifying, use a variable to store your password. Onc eyou connect, use script to identify. Then the human-error isn't an issue.

Code:
menu status {
  NickServ
  .$iif($nspass.iden, UnSet, Set) NickServ Pass For $me: if ($nspass.iden) { /nspass.rem } | else { /nspass.add $$?="Enter Password:" }
}

alias nspass.add {
  if (%ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ] == $null) {
    /set %ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ] $$1
    /echo $color(info) -ati2 Password Set For $me
  }
}

alias nspass.rem {
  if (%ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ] != $null) {
    /unset %ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ]
    /echo $color(info) -ati2 Password Removed For $me
  }
}

alias nspass.iden {
  if (%ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ] != $null) return $true
  return $false
}

on 1:CONNECT: {
  if (%ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ] != $null) {
    /nickserv identify %ns. [ $+ [ $gettok($server, 2, 44) ] $+ ] . [ $+ [ $me ] ]
    /echo $color(info) -ati2 You are now identified.
  }
}


-KingTomato
Joined: Dec 2002
Posts: 15
A
awn Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2002
Posts: 15
I have amended the code above to do what I want:

on 1:INPUT:#,?: {
if (mypassword isin $1-) { halt }
}

Thanks! wink

Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
If you want a much safer way of identifying, use a variable to store your password.

Yep, it is, until you get owned and the h4x0r finds out your password.

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
OMG! Not My NIckname! Anything but that! I mean i suppose it would be back if you were an idiot and used the same passfor your ns ident, as for your e:mail, and other things..yes. Me, my pass isn't going to be very valuable to a user online, and anyways--its just a name. "For a rose by any other name would still smell as sweet"


-KingTomato
Joined: Apr 2003
Posts: 55
T
Babel fish
Offline
Babel fish
T
Joined: Apr 2003
Posts: 55
i should do it with if (%password isin $1-)
than somewhere put in your script /set %password chiwawa :P


Link Copied to Clipboard