/amsg /me /ame

By X-FILE on Jun 23, 2004

Better usage of /amsg /me /ame commands.

----------------------------------------------------
|   /amsg /me /ame snippet                         
|    Coded by X-FILE                                    
|    Put this code to script editor.../remotes    
|   This snippet will help people for a better    
|   usage of /amsg /me and /ame commands.
------------------------------------------------------

;/amsg alias
alias amsg {
  if ( $server == $null ) { echo -a Not connected to Server | halt }
  if ( $1 == $null ) { echo -a  usage: /amsg <message> | halt }
  var %loop = $chan(0)
  while ( %loop ) { msg $chan(%loop) $1- | dec %loop }
  var %loop = $query(0)
  while ( %loop ) { msg $query(%loop) $1- | dec %loop }
}

;/me alias 
alias me {
  if ( $server == $null ) { echo -a Not connected to Server | halt }
  if ( $1 == $null ) { echo -a Usage: /me <action> | halt }
  if ( $active != status window ) { .describe $active $1- }
  else { echo -a Unable to use /me in $active | halt }
}

;/ame alias
alias ame {
  if ( $server == $null ) { echo -a Not connected to Server | halt }
  if ( $1 == $null ) { echo -a  Usage: /ame <action> | halt }
  var %loop = $chan(0)
  while ( %loop ) { .describe $chan(%loop) $1- | dec %loop }
  var %loop = $query(0)
  while ( %loop ) { .describe $query(%loop) $1- | dec %loop }
}

Eof; enjoy , Eri.

Comments

Sign in to comment.
Yoinx   -  Dec 23, 2004

it wouldnt, as all three of those are already mirc commands.

 Respond  
xwindows   -  Dec 23, 2004

dosn`t work on mine

 Respond  
j0k3r   -  Jun 23, 2004

I don\'t see a point to it, other then it messages to queries, too.

 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.