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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
Okay, one last question. Is there any way to make this gag case sensitive? I would like to block Illusion, but not necessarily illusion.
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.
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.
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
Will this block the entire line of text or just the usage of that word within a paragraph?
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}
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
Oops, that'd be without the -agL
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.
There is a -w<world> argument to /def. I've never used it myself.