channel spy

By Bite on Dec 11, 2011

i made this to watch all the rooms i set in from a single mirc window it echos all rooms your in to the active window your on i added a way to block channels incase your idling a game room or an extremely large busy room

menu channel {
Channel Spy ( $+ $group(#echo) $+ )
.$iif($group(#echo) == on,$style(2),$style(0)) On: .enable #echo | echo -a 3  $+ Channel Spy  $+ 3 On 3
.$iif($group(#echo) == off,$style(2),$style(0)) Off: .disable #echo | echo -a 3 Channel Spy $+ 4 Off 4
..Set Channel Block 1 ( $+ %block.1 ): set %block.1 #
..Unset Channel Block 1:unset %block.1
..Set Channel Block 2 ( $+ %block.2 ): set %block.2 #
..Unset Channel Block 2:unset %block.2
..Set Channel Block 3 ( $+ %block.3 ): set %block.3 #
..Unset Channel Block 3:unset %block.3
..Set Channel Block 4 ( $+ %block.4 ): set %block.4 #
..Unset Channel Block 4:unset %block.4
..Set Channel Block 5 ( $+ %block.5 ): set %block.5 #
..Unset Channel Block 5:unset %block.5
..Set Channel Block 6 ( $+ %block.6 ): set %block.6 #
..Unset Channel Block 6:unset %block.6
-
}
#echo off
on *:text:*:#:{
  if (# == $active) { halt }
  if (# == %block.1) { halt }
  if (# == %block.2) { halt }
  if (# == %block.3) { halt }
  if (# == %block.4) { halt }
  if (# == %block.5) { halt }
  if (# == %block.6) { halt }
  echo -a $nick - $chan  : $1- {

  }
}
#echo end

Comments

Sign in to comment.
blackvenomm666   -  Dec 11, 2011

also i would have it echo to an @ window therefore the stuff isn't cluttering up a window that your talking in. but thats just me

 Respond  
Jethro   -  Dec 11, 2011

I'll recommend that you use $addtok() $remtok(), and $istok()

set %block $addtok(%block,#,32)

to add channels.

set %block $remtok(%block,#,1,32)

to remove channels.

Then use:

on *:text:*:#:{
if ($istok(%block,#,32)) { halt }

This way you don't waste var space when you can store the values from left to right.

 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.