[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Gag function?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Gag function?

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


Posted by LucianDK   (18 posts)  [Biography] 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?
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by LucianDK   (18 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by LucianDK   (18 posts)  [Biography] 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.
[Go to top] 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.


2,672 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]