server spy

By HeartbrokenTR on Mar 28, 2011

if you connect with more then one server like me its been hard to follow whole channels .
this little snippet does who wrotes what,when, and in which server & channel wrotes shows in a channel which channel you choose..

for start posting you have to type /heartbroken on each servers which you connected in. then your script will begin to posting into ''your-channel''

alias heartbroken { .broken | .enable #heart }
alias broken {
  var %broken = 1, %heart = $scon(0)
  while (%broken <= %heart) {
    if ($scon(%broken).server == $server) { set %sconno %broken }
    inc %broken
  }
}
#heart on
on *:TEXT:*:#: {
  /scon %sconno /msg #your-channel $server $chan = $time = $+ $nick $+ -> $1- 
}
#heart end
on *:disconnect: { .unset %sconno | .disable #heart }
on *:Exit: { .unset %sconno | .disable #heart }

Comments

Sign in to comment.
Ahmed Zaggoudi   -  May 01, 2011

nice +1

 Respond  
Glaxu   -  Apr 05, 2011

i love u !!!! =D!
[14:54] &Fantasia: xxxx.xxxxxxxx.xxxxxxxx #Games = 14:54:00 = Kickeado: sHadOwde: #Games por: Goku Razon: Para de floodear! [14:54] &Fantasia: xxxx.xxxxxxxx.xxxxxxxx #Games = 14:54:02 = Entro sHadOw a #Games:
[14:54] &Fantasia: xxxx.xxxxxxxx.xxxxxxxx #Games = 14:54:02 = Goku sets mode: +h sHadOw`

 Respond  
[i]concur   -  Mar 28, 2011

I made a similar snippet a while ago...without the use of /scon and with the window that IllogicTC mentioned above. Odd :S

#Spy on
on *:TEXT:*:#: { 
  window -d @ServerSpy 0 0 900 300 tahoma 12 | aline @ServerSpy $bookend $server 6-  $+ $chan $bookend $quote.begin $timestamp $quote.end  $bookend $nick 6-  $+ $1-
}
#Spy end

Below is an edited version not including my custom aliases

#Spy on
on *:TEXT:*:#: { 
  window -d @ServerSpy 0 0 900 300 tahoma 12 | aline @ServerSpy $server 6-  $+ $chan  $timestamp $nick 6-  $+ $1-
}
#Spy end
 Respond  
IllogicTC   -  Mar 28, 2011

Reminds me of an experiment I tried, where it would watch multiple channels (and eventually across multiple servers), and bring them all together into one @Window. I know this would be confusing with HUGE amounts of channels, of course, but used with an appropriate amount for comfort would have been pretty neat. Then you just replied by typing as normal, just had to have the #chan as $1 in your input.

You have a useful snippet, thanks.

 Respond  
Jethro   -  Mar 28, 2011

I think you can just use /scon -at1 rather than a while loop through the scon():

alias heartbroken { .enable #heart }
#heart on
on *:TEXT:*:#: {
  /scon -at1 /msg #your-channel $server $chan = $time = $+ $nick $+ -> $1- 
}
#heart end
on *:disconnect: { .disable #heart }
on *:Exit: { .disable #heart }
 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.