Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Gag function?

Gag function?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by LucianDK   (23 posts)  Bio
Date Sun 10 Jul 2016 03:43 PM (UTC)
Message
I am wondering if theres an inbuilt @gag function that can completely remove output from characters I dont wish to have anything to do with.

So far ive been making do with coloring their sayings black, but that leaves jarring empty lines in the muck chatter.

Can you help me?
Top

Posted by Meerclar   USA  (733 posts)  Bio
Date Reply #1 on Sun 10 Jul 2016 07:35 PM (UTC)
Message
Is there not a server side ignore function?

As for something built in, not that I'm aware of, though it should be fairly simple to match a regex based on the names of the people you're hoping to ignore and remove any output from them. As a side note, it's probably best to do that at the packet level or not work with the main output screen as your primary interface.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 10 Jul 2016 09:25 PM (UTC)
Message
There is not an inbuilt @gag as such, but you can make an trigger that "omits from output".

I think Fiendish was working on a generic @gag feature.

There is an old plugin "Gag" that ships with MUSHclient that gags players. It's old because it is written in VBscript. :)

Try using that. From the plugin help:


gag (player)      <-- gags a player

eg. gag turkey

ungag (player)    <-- ungags a player

eg. ungag turkey

gagshow           <-- shows list of gagged players

gaginfo           <-- shows information about the gag plugin

gaghelp           <-- show this information

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by LucianDK   (23 posts)  Bio
Date Reply #3 on Sun 10 Jul 2016 09:48 PM (UTC)

Amended on Sun 10 Jul 2016 09:50 PM (UTC) by LucianDK

Message
Tested it, doesnt seem to work.

1:
gag Kesslan

2
It gags kesslan

3
He is still able to write me, which i suspect is because it doesnt respect names beginning with uppercase letters.


To meerclar: While tapestries muck have whisper and page ignores, it doesnt block public output from players you dont want to have anything to do with, if they are in the same room as you.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #4 on Sun 10 Jul 2016 10:35 PM (UTC)
Message
Edit the plugin (hit the Edit button in the plugin list). Add another line (ignore_case="y") as shown in bold below.




<triggers>
  <trigger
   custom_colour="1"
   enabled="n"
   ignore_case="y"
   match="will be replaced when you gag someone"
   name="gags"
   omit_from_output="y"
   regexp="y"
   sequence="100"
  >


Save your changes, then highlight that plugin in the plugin list and hit the Reinstall button.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by LucianDK   (23 posts)  Bio
Date Reply #5 on Mon 11 Jul 2016 07:59 AM (UTC)

Amended on Mon 11 Jul 2016 08:04 AM (UTC) by LucianDK

Message
Tested it after making your alteration, not functional.

gag Kesslan
kesslan added to list of gagged players.

They were still able to speak.


However I stumbled upon this thread with instructions for how to make a trigger to remove someone's output and it works.
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=2

A pleasure to be able to remove this irritant from my sight forever.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


20,819 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.