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
}
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