Auto identify Multi-network

By PurplesurgeMirc on Jun 18, 2009

/addident
/delident
Adds and removes identify commands, respectively.
If you can read mIRCscript everything should be obvious, if not.. Learn mIRCscript :/

Author: Rolo @ #mIRC on PurpleSurge

alias addident {
  ;/addident <network> <identify command>
  ;Example: /addident PurpleSurge ns identify FoogleBar 
  if ($readini(connect.ini,Connect,$$1)) {
    echo -st That Network already has an identify command associated with it.
    echo -st Try /delident <networkname> first
  }
  else {
    writeini connect.ini Connect $$1 $$2-
    echo -st Network $1 added with identify command: $2-
  }
}
alias delident {
  if ($readini(connect.ini,Connect,$$1)) {
    remini connect.ini Connect $$1
    echo -st Network $1 removed.
  }
  else echo -st There is no entry for Network $$1
}

on *:connect:{
  if ($readini(connect.ini,Connect,$network)) $v1
  else echo -st This network doesn't have an identify command associated with it yet.
}

Comments

Sign in to comment.
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.