SA and SVS commands

By Skyy on Mar 29, 2009

I'm sure something like this has probably already been tried, but i'll post mine, just in case it hasn't ^_^

This script does NOT require TAD's Home Integration Script.

Usage: /sahop
or /sahop if your active window is the channel you want them to /sahop

You must be an IRCop for this to work properly.

-edit-

Added the commands that allow you to change someone's nick, sajoin them, sapart them, and sahop them at their request. Must be U:lined for this to work.

alias sahop {
  If (!$2-) {
    If (# isin $active) && ($1 ison $active) { sapart $1 $active | sajoin $1 $active }
    Elseif (# isin $active ) { echo -a 2* Error: $1 is not in channel $active }
    Else { echo -a 2* Error: /sahop <Nick> <Channel> }
  }
  Elseif ($1 ison $2) { sapart $1 $2 | sajoin $1 $2 }
  Elseif (# isin $2) { echo -a 2* Error: $1 is not in channel $2 }
  Else { echo -a 2* $2 $+ , no such nick/channel. }
}

on *:TEXT:`*:*: {
  If (nick isin $1) {
  If (!$2) { .notice $nick Please type `nick <new nick> }
  Else { svsnick $nick $2- 123 }
  }
  If (part isin $1) {
  If (!$2) { .notice $nick Please type `join <channel> }
  Elseif (# isin $2-) { sajoin $nick $2- }
  Else { .notice $nick Please type `join <channel> }
  }
  If hop isin $1) {
  If ($2 == $null) { .notice $nick Please type !hop <channel> }
  Elseif (# isin $2-) { sahop $nick $2 }
  }
}

Comments

Sign in to comment.
Skyy   -  Apr 16, 2009

-edit-

Added the commands that allow you to change someone's nick, sajoin them, sapart them, and sahop them at their request. Must be U:lined for this to work.

 Respond  
FordLawnmower   -  Mar 29, 2009

Why would you make a module for something that you can do with msl?

 Respond  
Kinight   -  Mar 29, 2009

figure out how to code C and you can turn it into a module.

 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.