IRCop /sahop command.

By XTZGZoReX on Jan 19, 2008

Just a command to make it easier to make users part and rejoin channels, like when you do /hop yourself.

Command: /sahop
Version: 1.1
Author: XTZGZoReX

Usage: /sahop
Notes: For IRC operators only.

Enjoy!

alias sahop {
  if ( !$1 ) {
    echo -a * /sahop: insufficient parameters
    halt
    if ( !$2 ) {
      echo -a * /sahop: insufficient parameters
      halt
    }
  }
  sapart $1 $2
  .timer 1 1 sajoin $1 $2
}

Comments

Sign in to comment.
^Neptune   -  Oct 02, 2008

You could use:

alias sahop {
  if ((!$1) || (!$2)){
    echo -a * /sahop: insufficient parameters
    halt
  }
  sapart $1 $2
  .timer 1 1 sajoin $1 $2
}
 Respond  
sercan386   -  Oct 02, 2008

awesome stuff. extremely simple code (and not very advanced... you could just have one line of "insufficient parameters" stuff) but still... great idea. :D
how about this:

alias sahop if ( !$1 ) { echo -a * /sahop: insufficient parameters | halt } | sapart $1 $2 | sajoin $1 $2
 Respond  
napa182   -  Feb 24, 2008

why even use a timer if it's a hop and no need for a halt as well you dont need if (!$1) if you have if (!$2)

alias sahop { if (!$2) { echo $color(info) -a * /sahop: insufficient parameters } | else { sapart $1 $2 | sajoin $1 $2 } }
 Respond  
Korvin   -  Feb 24, 2008

there is no reason for the !$1, because if there isnt a $2, there obviously isnt a $1

alias sahop {
  if ( !$2 ) {
    echo -a * /sahop: insufficient parameters
    halt
  }
  sapart $1 $2
  .timer 1 1 sajoin $1 $2
}
 Respond  
napa182   -  Feb 23, 2008

Um why would you want to make other users hop the room for? When they can just hop them selves. eh.. but the code works so good job.

 Respond  
ALCAPONE   -  Feb 23, 2008

works great good job

 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.