Top

Monitor Nick


mIRC Code
+ 2 likes
Please Register to submit score.
Bookmark and Share
Average Score  7.3 (of 3 scores)
Date Added  Feb 08, 2009
Last Updated  Feb 09, 2009
Tags  code  jamiie  mirc  moniter  nick  script  snippet 

Introduction

This snippet monitor's a nick set in %mnick.

Usage:
/monitor <nick> = starts monitoring a nick
/unmonitor = stops monitoring the nick set
/view = opens a window containing all the messages sent by the nick being monitored


You can also use the menu by right clicking a nick and clicking Monitor Nick/Unmonitor Nick. View logs is also in the menu.


This was requested by someone.

Grab the Code

on *:text:*:#: {
  if ($nick == %mnick) {
    write monitor.txt $+ ($chr(40), $asctime(mmm/dd/yyyy),$chr(41)) $+($chr(40),$time(hh:nn:ss TT),$chr(41)) $+($chr(40),$nick,$chr(41)) $1-
  }
}
on *:text:*:?: {
  if ($nick == %mnick) {
    write monitor.txt $+($chr(40), $asctime(mmm/dd/yyyy),$chr(41)) $+($chr(40),$time(hh:nn:ss TT),$chr(41)) $+($chr(40),$nick,$chr(41)) $1-
  }
}
 
alias view { if $isfile(monitor.txt) { window -e @Monitoring | loadbuf -ip @Monitoring monitor.txt } }
 
alias monitor {
  if (!%mnick) {
    set %mnick $1
    echo -a $1 is now being monitored.
  }
  elseif ($1 == %mnick) {
    echo -a %mnick is already being monitored.
  }
}
 
alias unmonitor {
  if (!%mnick) {
    echo -a There is no one being monitored.
  }
  else {
    write -c monitor.txt
    echo -a %mnick not being monitored now.
    unset %mnick
  }
}
 
menu menubar,nicklist { 
  Monitor Nick
  .Monitor Nick:/monitor $$1
  .Unmonitor Nick:/unmonitor $$1
  .View:/view
}
 

Comments

  (6)  RSS
Aucun50
Comments: 548
 
mIRC Snippet:  Monitor Nick
Posted on Feb 8, 2009 4:52 pm
Here was it saves as "monitor.txt($chr(40)," other then that works good.
Jamiie
Comments: 167
 
mIRC Snippet:  Monitor Nick
Posted on Feb 8, 2009 5:51 pm
Thanks for the comment, rate it? :)
Aucun50
Comments: 548
 
mIRC Snippet:  Monitor Nick
Posted on Feb 8, 2009 6:03 pm
6/10 not really useful as i see but its neat
Kirby
Comments: 473
 
mIRC Snippet:  Monitor Nick
Posted on Feb 8, 2009 6:07 pm
Pretty neat Jamiie. :p

Earlier today, I made a script somewhat similar to what you did, but I used @windows with /aline for my own inputs and other peoples' text.

6/10 from me too.
TheWhistler
Comments: 18
 
mIRC Snippet:  Monitor Nick
Posted on Feb 9, 2009 10:51 am
nice one but could it be made to monitor more than just 1 nick at the time,say u wanted to monitor 3 nicks ?? 6/10 also

may want to add this at the end of it, it works for me

menu menubar,nicklist {
Monitor Nick
.Monitor Nick:/monitor $$1
.Unmonitor Nick:/unmonitor $$1
.View:/view
}
Jamiie
Comments: 167
 
mIRC Snippet:  Monitor Nick
Posted on Feb 9, 2009 12:17 pm
Updated.


Added menu as TheWhistler said, works fine.
Thank's TheWhistler.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom