Ustream Auto Identifier

By Dark_Aaron on Jan 05, 2009

just load
Enjoy!

;#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#;
;|  Ustream IRC Auto Identifier   |;
;#       By Aaron Blakely        #;
;|-------------------------------|;
;#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#;

on *:LOAD: {
  if (%firstload == $null) {
    set %ustream.username $encode($?="Ustream Username")
    set %ustream.password $encode($?="Ustream Password")
    set %firstload false
  }
}

alias Ustream {
  if ($1 == UN) { return %ustream.username }
  if ($1 == PW) { return %ustream.password }
}

on *:CONNECT: {
  if ($network == Ustream) {
    nick $decode($ustream(UN)) $+ : $+ $decode($ustream(PW))
  }
}

Comments

Sign in to comment.
NIGathan   -  Jan 06, 2009
alias ustream return $+($decode(%ustream.username),:,$decode(%ustream.password))
on *:CONNECT: if ($network == Ustream) { nick $ustream }

Much easier..

 Respond  
Kirby   -  Jan 05, 2009

...That's what I said napa. :(

 Respond  
Dark_Aaron   -  Jan 05, 2009

@napa182 i was bored so i just add encodeing and decodeing

 Respond  
napa182   -  Jan 05, 2009

i dont see a point in useing encode and decode.
you can use

$$?*="Ustream Password"

to enter the pass so it shows it like ***
you should have it so the $network can be any network you want to use this on. Not just Ustream.

or you could also use mirc's built in option's like perform.
4/10

 Respond  
Dark_Aaron   -  Jan 05, 2009

@Kirby LOL and i was just about to release an update with what u said and a little more

 Respond  
Kirby   -  Jan 05, 2009
on *:LOAD: {
  set %ustream.nick <username>
  set %ustream.pass <pass>
}

Instead of asking them to "EDIT THIS", why not ask them on an on load popup by using:

on *:load:{
  set %ustream.nick $?:"Please type in your Ustream username"
  set %ustream.pass $?*:"Please type in your Ustream password."
}

and also:

   $+(timer 1 5 nick %ustream.nick,:,%ustream.pass)

You don't need timers - mIRC will automatically detect lag on connect to a server and delay commands.

Btw, you misspelled "Identifier", in the title.

 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.