mIRC Homepage
Posted By: bodo0815 filter chan-serv messages - 13/12/05 03:06 PM
hello
how kann i filter chan,-nick,-bot,-and memo-serv messages
in a @extra windows?

bodo
Posted By: Kelder Re: filter chan-serv messages - 13/12/05 04:06 PM
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...
Posted By: bodo0815 Re: filter chan-serv messages - 13/12/05 09:42 PM
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?
Posted By: Kelder Re: filter chan-serv messages - 13/12/05 09:55 PM
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...
Posted By: bodo0815 Re: filter chan-serv messages - 14/12/05 12:40 AM
thx :-) it works

but what is " debug" doing?

bodo
Posted By: Kelder Re: filter chan-serv messages - 14/12/05 10:02 AM
/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
© mIRC Discussion Forums