Simple Auto Identify

By no_body21 on Feb 06, 2007

set the password of the current nick on menubar,status,channel menu

this is only a simple snippet where I used hash just to try if it works..
Any suggestions,comments and help are welcome

on *:start:{
  if !$hget($me) { .hmake $me 10 }
  if $exists(Aid.hsh) { .hload $me Aid.hsh }
}
on *:connect:{
  if !$hget($me) { return }
  if $exists(Aid.hsh) {
    if $hget($me) { ns identify $hget($me,1).item }
  }
}
on *:notice:*is owned by someone else*:*:{
  if !$hget($me) { return }
  if $exists(Aid.hsh) {
    if $hget($me) { ns identify $hget($me,1).item }
  }
}
on *:exit:{ .hsave -o $me Aid.hsh }

menu channel,menubar,status {
  Auto Ident
  .Set Password : .hadd -m $me $$?"password to be set on current nick" 1
}

Comments

Sign in to comment.
Storm2108   -  Apr 27, 2007

to be honest i dont need to make one i put /ns identify Password in perform and enable on connect ;P

 Respond  
sinnercreed   -  Feb 06, 2007

To be quite honest, I use a text file, I\'m not sure whether text files or hash tables are faster though as I am inexperienced with hash tables :/ looks good though.

 Respond  
no_body21   -  Feb 06, 2007

Any suggestions or help are welcome

 Respond  
no_body21   -  Feb 06, 2007

Looks okay, but..
on *:start:{
if !$hget($me) { .hmake $me 10 }
if $exists(Aid.hsh) { .hload $me Aid.hsh }
}

Looks okay, but..
on *:start:{
if !$hget($me) { .hmake $me 10 }
if $exists(Aid.hsh) { .hload $me Aid.hsh }
}

Ur making a hash table after your own nick, and then later into the code its suddenly called \"Aid?\", sorry, never used Hash tables before. correct me if im wrong.


Aid is the hash file `coz it\'s saved on Aid.hsh
\" on *:exit:{ .hsave -o $me Aid.hsh } \"

$me is the table `coz i really wanted this to identify on every nick that is currently used..

I\'ll update this snippet

 Respond  
Aaron   -  Feb 06, 2007

on *:connect:{ ns identify PASSWORD }

-.-

 Respond  
Lindrian   -  Feb 06, 2007

Looks okay, but..
on *:start:{
if !$hget($me) { .hmake $me 10 }
if $exists(Aid.hsh) { .hload $me Aid.hsh }
}

Ur making a hash table after your own nick, and then later into the code its suddenly called \"Aid?\", sorry, never used Hash tables before. correct me if im wrong.

 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.