忽略某些带有 irssi 的昵称?

Wuf*_*ers 3 irc irssi

有什么办法可以忽略Irssi 的某些缺口?

Ema*_*erg 7

请注意,如果使用/ignore <nick>,则必须/save使其粘住。(这将更新您的配置文件,破坏任何缩进。)

我发现直接在~/.irssi/config

ignores = (
  # possibly lots of other stuff
  { mask = "idiotnick";   level = "ALL"; },
  { mask = "spammernick"; level = "ALL"; }
);
Run Code Online (Sandbox Code Playgroud)

如果 Irssi 正在运行,请使用它/reload来使更改栩栩如生。


use*_*325 6

/ignore <nick> 应该为一个人做,但如果您想匹配更多人,还有更多选择。

irssi 手册

10.1 Manual ignoring

Irssi's ignoring options should be enough for everyone :)

/IGNORE [-regexp | -word] [-pattern <pattern>] [-replies] [-except]
        [-channels <channel>] <mask> <levels> <^levels>

    -regexp: <pattern> is a regular expression
    -word: <pattern> must match to full words
    -pattern: <pattern> must match to the message's text
    -replies: Ignore replies to nick in channels. For example
              "/IGNORE -replies *!*@*.fi PUBLIC" ignores everyone
          from Finland, but also anyone sending message
          "tofinnishnick: blahblah".
    -except: *DON'T* ignore
    -channels: Ignore only in channels
    <mask>: Either a nick mask or list of channels
    <levels>: List of levels to ignore
    <^levels>: List of levels to NOT ignore
               (/ignore -except nick notices = /ignore nick ^notices)

/UNIGNORE <ref#> | <mask>

/IGNORE without any arguments displays list of ignores.

The best match always wins, so you can have:

    /IGNORE * CTCPS
    /IGNORE -except *!*@host.org CTCPS
Run Code Online (Sandbox Code Playgroud)