mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2006
Posts: 4
F
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Jun 2006
Posts: 4
At some time in the past I had IRC with some scripts installed, that I have no idea what they were or where I got them. But There was one thing that was real nice that I havenet been able to find or make on my own.

Basically it would open up a query window in my switchbar and show each line that had my nick in it from the channels I was connected to. I'd like to have this back. Any help? (and yes I'm a scripting noob)

Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Well, you could use this script.
I made it to capture all kinds of events, like nick highlights, kicks, mode changes, basicly all possible events.
Below is the version just with Nick related stuff.
It opens a new window called "EventsLog" when you start mIRC.

Do, ALT + R
And copy/paste the code below to a new file.

Code:
;==================================================================================================
; MONITORING SCRIPT: EVENTS MONITOR IN @WINDOW
;==================================================================================================
on *:START:{
  window -k0 @EventsLog
  log on @EventsLog -f EventsLog.log
  echo @EventsLog -
  echo -t @EventsLog Network: $network
  echo -t @EventsLog Server: $server
  echo @EventsLog -
}
;==================================================================================================
on *:NOTICE:*:?:{
  echo @EventsLog $timestamp 5PRIVATE NOTICE detected:
  echo @EventsLog $timestamp Private notice from $nick $+ : $1-
  echo @EventsLog -
}
;==================================================================================================
on *:TEXT:*:#:{
  if ($me isin $1-) {
    echo @EventsLog $timestamp 5NICK highlight:
    echo @EventsLog $timestamp $chan $+ : < $+ $nick $+ > $1-
    echo @EventsLog -
  }
}
;==================================================================================================
on *:TEXT:*:?:{
  if ($me isin $1-) {
    echo @EventsLog $timestamp 5NICK highlight:
    echo @EventsLog $timestamp PRIVATE: < $+ $nick $+ > $1-
    echo @EventsLog -
  }
}
;==================================================================================================
 

Joined: Jun 2006
Posts: 4
F
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Jun 2006
Posts: 4
W00t! almost exactly what I wanted. Thanks. [showing noobness] isthere a way to throw a wildcard around $me?

Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
I guess you could try to change:
if ($me isin $1-) {
to
if ($me iswm $1-) {

Didn't test it though, but something like that should do it I reckon.

Good luck

Joined: Jun 2006
Posts: 4
F
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Jun 2006
Posts: 4
Drat. the original script worked at first, but not so much now. It will do the 'PRIVATE NOTICE detected:' properly when I join the channel but that's it, it seems. I've recopied the original script you gave me several times and it's just not doing the TEXT oriented ones any more.

Is there a way I can open my own channel to test this with out bothering everybody else in IRC?

I appreciate all of the assistance.

Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Well the text events only trigger on someone elses text.
So, the only way for testing is logging into another irc client.

You could use another copy of mIRC, or just some other webbased IRC client. Without creating a complete different script, I dont think there is any other way to test this.

Joined: Jun 2006
Posts: 4
F
Self-satisified door
OP Offline
Self-satisified door
F
Joined: Jun 2006
Posts: 4
As a follow-up, I rebooted and now the script works fine again. thanks for you help!


Link Copied to Clipboard