SyncKill for IRCops

By anthalus on Jun 01, 2005

This is for use by IRCops. It is a two part script that allows you and your bot ( if it has IRCops status also) to simultaneously kill 2 different nicks. Yes, there are other commands that work just as well, but I got bored and decided to build this. Paste the top half into the master nick remotes and the bot half into the bot remotes.

;====================================
;SyncKill Program
;Built by Anthalus
;irc.flirtuniverse.net
;2 parts to this code:
;Master and Bot
;Change <yourbotname> to the name of your bot
;Change <masternick> to the nick of the bot's master
;====================================

;Master Script

alias SyncKill {
  .var %synced1 = $$?="First Nick"
  .var %synced2 = $$?="Second Nick"
  .msg <yourbotname> ~Sync %synced2
  .timer 1 30 .kill %synced1 SyncKill Utilized
}

;Bot Script

on *!:TEXT:~Sync*:?: {
  if ( $nick == <masternick> ) {
    if ( $2 == $null ) {
      .msg <masternick> Need to specify nick | halt
    }
    if ( $2 != $null ) {
      if ( A isincs $usermode ) || ( N isincs $usermode ) {
        .timer 1 30 .kill $2 SyncKill Utilized
      }
      else {
        .msg <masternick> $me needs Admin Status | halt
      }
    }
  }
  else {
    .msg $nick Unauthorized attempt
    .kill $nick Unauthorized Command Use
  }
}

Comments

Sign in to comment.
ZiX   -  Oct 22, 2007

This is script completely sucks

 Respond  
DarthReven   -  Jun 02, 2005

i really don\'t see the point in this code but thats just me

 Respond  
anthalus   -  Jun 01, 2005

What and remove the verbosity?

I know, I meant to change it, but forgot to.

 Respond  
xDaeMoN   -  Jun 01, 2005

The \"!\" in the text event is useless since it cannot trigger it\'s own text.

On This part:

  if ( A !isincs $usermode ) || ( N !isincs $usermode ) {
    .msg <masternick> $me needs Admin Status | halt
  }
  if ( A isincs $usermode ) || ( N isincs $usermode ) {
    .timer 1 30 .kill $2 SyncKill Utilized
  }       

Can be changed to :

   if ( A isincs $usermode ) || ( N isincs $usermode ) { .timer 1 30 .kill $2 SyncKill Utilized }       
  else .msg <masternick> $me needs Admin Status
 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.