Hi,

After getting millions of channel ads (and other trash too) when
either joining a channel, or when a new user joins, I wrote a simple
arexx script set to solve this problem:

---------------------------------------------------------------------------
ignore.amirx:
(takes the time in seconds and the nick to ignore, usually called from
Events/Join configuration in AmIRC with: amirc:Rexx/ignore.amirx 10 %p)

/* */
options results
parse arg args
parse var args full
parse var args ":" nick "!"
secs = 15
chann = "pite"
'getmynick' ; mynick = result
if mynick = nick then do
  secs = 30
  banmask = "*!*@*"
  'say /ignore' banmask '+PRIV'
  address COMMAND 'run rx inet:amirc/rexx/unignore.amirx' address() chann banmask nick 
secs
end
else do
  'userhost' nick
  if RESULT ~= "RESULT" then do
    parse var RESULT ident '@' host
    if length(ident) > 8 then ident = left(ident,8) || '*'
    parse var host host1 '.' host2 '.' host3 '.' host4
    if datatype(host4,'n') = 1 then banhost = host1 || "." || host2 || "." || host3 || 
".*"
    else do
      parse var host host1 '.' host2
      banhost = "*." || host2
    end

    banmask = ident || "@" || banhost

    'say /ignore' banmask '+PRIV'
    address COMMAND 'run rx inet:amirc/rexx/unignore.amirx' address() chann banmask 
nick secs
  end
end

---------------------------------------------------------------------------
unignore.amirx:
(takes the port name of the calling program, the channel, ban/ignore mask the nick and
the time in seconds before starting. Usually called from ignore.amirx)

/* Unignore */
options results
parse arg callingprog chann guesthost nick secs
callingprog = compress(callingprog, " ")
chann = compress(chann, " ")
guesthost = compress(guesthost, " ")

call delay(secs*50)
stringcmd =  "address '" || callingprog || "'"
interpret stringcmd
'say /unignore' guesthost

---------------------------------------------------------------------------

The only problem, and that's a big problem, is that my channel window
and logs gets filled up with ignore messages from AmIRC:

[21:24:09] �Ignore�     Ignore entry ~[EMAIL PROTECTED]* removed.
[21:24:11] �Ignore�     Ignore entry piggelin*@*.telia.com removed.
[21:24:15] �Ignore�     Ignore entry ~ballana*@*.telia.com removed.
[21:24:15] �Ignore�     Now ignoring argghhh@*.ppp.algonet.se [PRIV].
[21:24:16] �Ignore�     Now ignoring ~hmmm@*.norrnet.com [PRIV].
[21:24:20] �Ignore�     Ignore entry football@*.ppp.algonet.se removed.
[21:24:27] �Ignore�     Now ignoring karin@*.telia.com [PRIV].
[21:24:31] �Ignore�     Ignore entry argghhh@*.ppp.algonet.se removed.
[21:24:31] �Ignore�     Ignore entry ~hmmm@*.norrnet.com removed.
[21:24:34] �Ignore�     Now ignoring Craig@*.swipnet.se [PRIV].
[21:24:36] �Ignore�     Now ignoring fr_ga@*.telia.com [PRIV].
[21:24:42] �Ignore�     Ignore entry karin@*.telia.com removed.
[21:24:49] �Ignore�     Ignore entry Craig@*.swipnet.se removed.
[21:24:51] �Ignore�     Ignore entry fr_ga@*.telia.com removed.
[21:25:03] *private line*
[21:25:11] *private line*
[21:25:14] �Ignore�     Ignore entry gfbgh@*.telia.com removed.
[21:25:40] *private line*
[21:25:46] �Ignore�     Now ignoring jensn@*.ppp.algonet.se [PRIV].
[21:25:51] �Ignore�     Now ignoring ~Yeeeyee@*.tnt11.stk3.da.uu.net [PRIV].
[21:25:53] �Ignore�     Now ignoring H_E_J123@*.swipnet.se [PRIV].
[21:25:56] *private line*
[21:26:01] �Ignore�     Ignore entry jensn@*.ppp.algonet.se removed.
[21:26:07] �Ignore�     Ignore entry ~Yeeeyee@*.tnt11.stk3.da.uu.net removed.
[21:26:07] �Ignore�     Now ignoring ~tuzz_@*.telia.com [PRIV].
[21:26:08] �Ignore�     Ignore entry H_E_J123@*.swipnet.se removed.

and so on...

Is there a simple solution to this (like ignoring quietly) ?

I have suggested an ehnancement request solving this problem a couple
of years (?) ago, that separate the messages from the channel and
query windows, but it didn't seem get implemented..

/PeO
___________________________________________________________________
AmIRC Mailing List - http://www.vapor.com/amirc/
AmIRC FAQ......: http://faq.vapor.com/amirc/
Listserver Help: mailto:[EMAIL PROTECTED]?Subject=HELP
Unsubscribe....: mailto:[EMAIL PROTECTED]?Subject=UNSUBSCRIBE

Reply via email to