mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2007
Posts: 48
E
Ameglian cow
OP Offline
Ameglian cow
E
Joined: Aug 2007
Posts: 48
Hey, is there a code that can change my nick password every couple of days, I also have alias's like /ident so I don't have to typing in the whole thin etc... But I would want those to change also, but automatically.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
this could be done, and for security, I'd recommend having the passwords in a text file that is on your computer, and nowhere else.
Code:
on *:connect:{
  if !%password_date {
    set %password_date $ctime
    set %pass_count 1
  }
  elseif $calc($ctime - %password_date) > 172800 {
    .msg nickserv identify <passwd>
    inc %pass_count
    if %pass_count > $lines(Password.txt) {
      set %pass_count 1
    }
    .msg nickserv passwd $read(Password.txt,n,%pass_count)
  }
}


There's probably better ways of doing this, but there's an example of how it could be done,


Link Copied to Clipboard