PassSaver

By blackvenomm666 on Jun 13, 2011

Right click menu function for saving/deleting pw's for servers/networks you can save as many as you want just right click go to pass saver go to the proper type of server chatspace or ircd and add your pw. Add to a new remotes file. ok update can now store OPER pw's just go to the passaver then go to oper pw's choose if its an ircd or a chatspace site your saving it for then enter your hostname then it will ask you to enter your pass put your pass in and its set. you must be connected to the site to be able to set any of the pw's

menu channel,nicklist {
  Pass Saver
  .Chatspace
  ..Add: { writeini passsaver.ini $serverip Pass $$?="pass?" }
  ..Delete: { remini passsaver.ini $serverip }
  .Ircd
  ..Add: { writeini passsaver.ini $network Pass $$?="pass?" }
  ..Del: { remini passsaver.ini $network  }
  .operpws
  ..AddChatspace: { writeini operpasssaver.ini $server HostName $$?="Your HostName" | writeini operpasssaver.ini $server Pass $$?="pass?" }
  ..DelChatspace: { remini passsaver.ini $server }
  ..AddIrcd: { writeini operpasssaver.ini $network HostName $$?="Your HostName" | writeini operpasssaver.ini $network Pass $$?="pass?" }
  ..DelIrcd: { remini operpasssaver.ini $network }
}
on 1:snotice:*pass*: { pass $readini(passsaver.ini, $serverip,pass) }
on *:notice:*is registered and*:*: {
  if ($nick == nickserv) {
    .msg nickserv identify $readini(passsaver.ini, $network,pass)
  }
}
on *:text:*is registered and*:?: {
  if ($nick == nickserv) {
    .msg nickserv identify $readini(passsaver.ini, $network,pass)
  }
}
On *:Connect:{ if ($readini(operpasssaver.ini, $network,hostname)) {
    .timer 1 2 .oper $readini(operpasssaver.ini, $network,hostname) $readini(operpasssaver.ini, $network,pass)
  }
  elseif ($readini(operpasssaver.ini, $server,hostname)) {
    .timer 1 2 .oper $readini(operpasssaver.ini, $server,hostname) $readini(operpasssaver.ini, $server,pass)
  }
}

Comments

Sign in to comment.
Frenetic   -  Jun 14, 2011

Santa clause.

 Respond  
blackvenomm666   -  Jun 14, 2011

O_O who ish you that you can just ask me live?

 Respond  
Frenetic   -  Jun 14, 2011

lol @ Deanrolled
And, I don't need to, I can just ask him live. lol

 Respond  
Jethro   -  Jun 14, 2011

That thread's comment section has been deanrolled pretty badly. lol

Anyhow...keep up the good work as always, blackvenomm666.

Frenetic, maybe it's time you explore blackvenomm666's snippets? :p

 Respond  
Frenetic   -  Jun 14, 2011

ah, I see.

 Respond  
blackvenomm666   -  Jun 14, 2011

because this one is specifically for chat sites. the other one is for saving your msn/yahoo/aim pw's in case you forget your pw's a lot it encodes them before storing them then decodes them when you want to view them.

 Respond  
Frenetic   -  Jun 14, 2011

Then why did you make this one lol?

 Respond  
blackvenomm666   -  Jun 14, 2011

i have a pw saver with a dialog http://www.hawkee.com/snippet/8036/

 Respond  
Frenetic   -  Jun 14, 2011

Me too, but each to their own.

 Respond  
Jethro   -  Jun 14, 2011

Well, password saver related scripts have been done before, so it's not an one-of-a-kind or rare project to embark on. I've seen it done in dialogs too. :p

 Respond  
Frenetic   -  Jun 14, 2011

He could just expand this project into that, lol.

 Respond  
Jethro   -  Jun 14, 2011

Frenetic, what you're saying here is a whole new project that we'll call a password saver of some sort. Yes, if you're going to write a script like that, using hash table is a great choice.

 Respond  
Frenetic   -  Jun 14, 2011

Figured.

@Jethro_, What if he wants to store passwords for others things, rather than just mIRC?

 Respond  
blackvenomm666   -  Jun 14, 2011

i plan to put out a dialog version of this as well but not right now haha

 Respond  
Jethro   -  Jun 14, 2011

Frenetic, unless you have lots of passwords and require them to be updated and changed for reference constantly, hash table, in this case, is not applicable. The INI blackvenomm666 has chosen to use will get the job done just fine. Using hash table also requires that you supply an extra code for /hsave when mirc is existed or closed and another one to /hload when you start or open your mirc. It's a hassle compared to INI.

 Respond  
blackvenomm666   -  Jun 14, 2011

might be but i dont know how to use hash tables atm

 Respond  
Frenetic   -  Jun 14, 2011

Oh wow, it's not in a dialog, lol. Nice work man. But, wouldn't be using hash tables better?

 Respond  
Jethro   -  Jun 14, 2011

Well, if you have leafed through mIRC's help file, I'm certain that it offers a simple explanation to what it does. To me, I take it as you would do if-then-else condition.

 Respond  
blackvenomm666   -  Jun 14, 2011

no its not intrusive but i dont understand your $iif statment. Care to explain it to me?

 Respond  
Jethro   -  Jun 14, 2011

Blackvenommm666, I see that you've discovered the joy of INI. :P Nice idea to make people's lives easier.

If I were you, though, I'd do it as such:

on 1:snotice:*pass*: pass
on *:notice:*is registered and*:*: if ($nick == nickserv) pass
alias -l pass {
    $iif($network == chatspace,pass,msg nickserv identify) $readini(passsaver.ini,$iif($event == notice,$network,$serverip),pass)
  }
}

I hope that you don't find my comment intrusive. I'm just here to offer my two cents worth.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.