Menu

/gag and logs.

Shep
2009-04-26
2013-04-25
  • Shep

    Shep - 2009-04-26

    So, I have /gags set up, and I have automatic logging set on all of my worlds.

    So, when I go through my logs I noticed that all the stuff I gagged makes it to the log.  Is there a switch or something I am missing that can make sure it's not even logged, either on the /gag command or the /log command?

    Thanks.

     
    • Elmak

      Elmak - 2009-04-26

      Not with /gag. However, if you use /def to set the gag, yes.

      /def -agL -t'Text to gag'

      -

      Tinyfugue converts all /hook /trigger /hilite and /gag commands into /def. The former commands have almost no configuration: its' all in /def.

      -a sets attributes, g sets the gag and L sets no-log.

       
      • Shep

        Shep - 2009-04-27

        Okay, one last question.  Is there any way to make this gag case sensitive?  I would like to block Illusion, but not necessarily illusion.

         
    • Elmak

      Elmak - 2009-04-27

      Sure, you'll just have to use a matching style that is case-sensitive.

      /def -mregexp -agL -t'^This is the Text To Gag$'

      To explain that: -mregexp sets the matching style to regexp, or regular expressions. The ^ and $ are special characters in regexp, they signify start-of-line and end-of-line respectively. As a Gag always strips the entire line from your screen, using at least one of the markers is wise.

      Regular expressions, as a whole, are an extremely potent way to fine-tune triggers, highlights, and gags. There is some basic literature inside Tinyfugue, as well as reams of it online.

       
      • Shep

        Shep - 2009-04-27

        Not quite working the way I hoped.

        Basically, there is someone I would like to not have exist in my output, screen or log, and so I am trying to gag them by name.  Unfortunately, they are using a rather common English word as a name, which makes it difficult for me to see output when that word would normally be used.

        /def -agL -t'*Illusion*'

        Is what I have now.  It basically gags all instances of the word "Illusion".  If I can just get it to block with the uppercase I, that chances of me missing something with that word drops tremendously.

        I appreciate everyone's help.  I'm trying to struggling through the manual, but not quite speaking my language, I suppose.

         
    • Elmak

      Elmak - 2009-04-27

      The solution here then is also a regexp matched trigger, I was just a little confused to your use thereof. As a note, you should generally also name things done with /def so you don't end up with duplicates.

      /def -agL -mregexp -t'Illusion' name_here

       
      • Shep

        Shep - 2009-04-27

        Will this block the entire line of text or just the usage of that word within a paragraph?

         
    • Elmak

      Elmak - 2009-04-27

      The entire line, gags are always an entire line. If you want to remove just the word it'd be a bit different.

      /def -agL -mregexp -t'Illusion' remove_Illusion = /substitute %{PL} %{PR}

       
      • Shep

        Shep - 2009-04-27

        Thanks, I'll give it a shot.  The only thing I need to tweak is making specific words blocked by specific worlds.  But that's enough for one day. :P

         
    • Elmak

      Elmak - 2009-04-27

      Oops, that'd be without the -agL

       
    • Shep

      Shep - 2009-07-16

      Okay, so I'm going along pretty good at the moment, and I appreciate everyone's help with this.  So, I'm gagging with the following command:

      /def -agL -t'*badword*' badword

      I also have a bunch of worlds listed in a 'world' file on my server that I read from when I startup 'tf'.  They look like this:

      /test addworld("mychar", "tiny.muck", "xxx.xxx.xxx.xxx", "####", "mychar", "mypass")

      I have no idea if the syntax is correct, but it's working for me.   I have 11 or 12 worlds listed and named by character.  I'd like to use this particular gag only on a few of these worlds instead of them all.  Is there a way to limit that using the information I've provided?  Say I only want to gag that word in the world listed above. 

      Possible?

      Thanks everyone.

       
      • Tim Fredenburg

        Tim Fredenburg - 2009-07-17

        There is a -w<world> argument to /def.  I've never used it myself.

         

Log in to post a comment.