mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2024
Posts: 4
M
Mairel Online OP
Self-satisfied door
OP Online
Self-satisfied door
M
Joined: Dec 2024
Posts: 4
Hi guys, basically I have a script that makes all notices appear in a custom window called @Notice.

How can I remove a single notice from the @Notice window, as soon as I receive it, if it contains a certain word?

I tried to delete a notice that contained the phrase "try this new feature", with something like this:

on *:NOTICE:*try this new feature*:*: { /dline -s @Notice 1- }

aaaand it didn't work of course cool any help?

Joined: Jan 2012
Posts: 334
Pan-dimensional mouse
Offline
Pan-dimensional mouse
Joined: Jan 2012
Posts: 334
It will be easier for you to initially not record a notice/message containing certain words than to later search for and delete this saved string in the window.

Try using this script code instead of your script:
Code
on *:NOTICE:*:*:{
  if (*try this new feature* iswm $1-) { return }
  if (!$window(@Notice)) window @Notice
  aline -p @Notice $timestamp $1-
}


🌐 http://forum.epicnet.ru 📜 irc.epicnet.ru 6667 #Code | mIRC scripts, help, discuss, examples

Link Copied to Clipboard