mIRC Home    About    Download    Register    News    Help

Print Thread
filter chan-serv messages #137513 13/12/05 03:06 PM
Joined: Apr 2005
Posts: 72
B
bodo0815 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2005
Posts: 72
hello
how kann i filter chan,-nick,-bot,-and memo-serv messages
in a @extra windows?

bodo

Re: filter chan-serv messages #137514 13/12/05 04:06 PM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Those are usually all regular notices, so use the on NOTICE event.

To make a cleaner event, add nickserv and all other services and/or users you want forwarded to the user list (alt-r alt-u) making one line for each service in the format
service:nickserv!Services@network.com
where the first is the same name as below, and the rest is nick!ident@address, you can get this from a /whois nickserv.

Then add this to your remotes (alr-r alt-r)

Code:
on ^service:NOTICE:*:?:{
  echo @extra $nick -> $1-
  haltdef
}


This way you can also get Q,L,X messages from other networks without a log if ($nick == ..) elseif ($nick == ...) chain. Note that one some networks services use server notices, in that case see the help for the on SNOTICE event...

Re: filter chan-serv messages #137515 13/12/05 09:42 PM
Joined: Apr 2005
Posts: 72
B
bodo0815 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2005
Posts: 72
Code:
on *:NOTICE:*:?:{
  msg #channel $nick -> $1-
  haltdef
}

regular notices from users works fine
but not service notice :-(
i will extract the /knock event and post in a #channel
service notice:
[22: 09: 50] -Res.JE-IRC.biz:@#channel- [Knock] by user!test@test.vhost (let.me.in)
how is the service for user-list?

Re: filter chan-serv messages #137516 13/12/05 09:55 PM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Type /debug @debug before such a command and check the debug window for such things, that usually gives better info.

This knock event appears to be a channel CTCP event, so I'm guessing
ctcp *:knock:#:echo @extra CTCP: $nick knocked on the door: $1-

But the best option is to just try to catch them all:
on *:SNOTICE:*:echo @extra SERVER MESSAGE: $1-
on *:NOTICE:*:#:echo @extra NOTICE from $nick to $chan : $1-

One of those should catch that message...

Re: filter chan-serv messages #137517 14/12/05 12:40 AM
Joined: Apr 2005
Posts: 72
B
bodo0815 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Apr 2005
Posts: 72
thx :-) it works

but what is " debug" doing?

bodo

Re: filter chan-serv messages #137518 14/12/05 10:02 AM
Joined: Apr 2003
Posts: 701
K
Kelder Offline
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
/debug @debug
should make a new custom window where all messages from and to the server for that connection are logged in exactly the way they are sent. This means that you see how normal messages are sent, what codes a /whois uses to send it's data, how channel joins are passed to your client and when the ping? pong! event happens. It also shows stuff that you could have halted in a script, for custom text layouts or for spam detection or whatever. It's also a nice tool to learn about the IRC protocol, it's not that difficult to understand what line means what mIRC action to happen smile Type /debug off to stop this output smile