3 Aliases: /gnick, /restart, /reconnect

By XTZGZoReX on Jan 19, 2008

These are 3 very small aliases I wrote, just for general use.

Command: /gnick
Version: 1.2
Author: XTZGZoReX

Command: /restart
Version: 1.0
Author: XTZGZoReX

Command: /reconnect
Version: 1.0
Author: XTZGZoReX

Usage of /gnick: Simply type /gnick and it will change your nickname on all active connections.

Usage of /restart: Type /restart followed by your quit message, and mIRC will quit all connections and restart.

Usage of /reconnect: Just type /reconnect followed by your quit message, and you will be reconnected to the server.

Enjoy!

alias gnick {
  if ( !$1 ) {
    echo -a * /gnick: insufficient parameters
  }
  else {
    scon -at1 !nick $1
  }
}

alias restart {
  scon -at1 !quit $1-
  exit -r
}

alias reconnect {
  if ( $server ) {
    quit $1-
    server $server
    halt
  }
  echo -a * /reconnect: not connected to server
}

Comments

Sign in to comment.
muller87   -  Mar 04, 2009

cool

 Respond  
guest598594   -  Jan 21, 2008

i dont believe u have to quit on the reconnect, just \"server $server\"

 Respond  
Korvin   -  Jan 20, 2008

[dx] if youd notice the halt, it doesnt need the else {

 Respond  
[DX]   -  Jan 20, 2008

will this be

alias reconnect {
  if ( $server ) {
    quit $1-
    server $server
    halt
  }
  else {
    echo -a * /reconnect: not connected to server
  }
}

???

 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.