TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

#gag don't load the first time

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Sinister Stairs



Joined: 26 Apr 2010
Posts: 9

PostPosted: Tue Apr 27, 2010 3:38 pm    Post subject: #gag don't load the first time Reply with quote

I'm running 2.00.1 compiled from source on OS X and Linux, and I've found that #gag commands do not get loaded in their initial #read. Instead, #gag need to be read again to become initialized. (This happens in 1.99.x as well.)

For example, I run tintin++ with tt++ -r init.tt, and the first line in my init.tt is #read test.tt. test.tt looks like:

Code:

#class test kill
#class test open

#gag {THIS IS A TEST}
#high {THIS IS A TEST} {bold}

#class test close


Upon running tt, if I check #class test, the #highlight was loaded but not the #gag:

Code:

##################################### test #####################################
#HIGHLIGHT {THIS IS A TEST}={bold} @ {5}


Now if I re-#read init.tt or test.tt, then the #gag gets loaded:

Code:

##################################### test #####################################
#GAG {THIS IS A TEST}
#HIGHLIGHT {THIS IS A TEST}={bold} @ {5}


Any ideas why #gag's needed to be #read a second time to become initialized?
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Tue Apr 27, 2010 8:11 pm    Post subject: Reply with quote

Works for me. No idea what is going wrong on your end.
Back to top
View user's profile Send private message Send e-mail
Sinister Stairs



Joined: 26 Apr 2010
Posts: 9

PostPosted: Wed Apr 28, 2010 5:50 pm    Post subject: Reply with quote

I'm still experimenting, but it seems related to #session.

If I output #gag prior to #session, I can see the #gagged lines. Immediately after #session, the #gag list is cleared.
Back to top
View user's profile Send private message
Sinister Stairs



Joined: 26 Apr 2010
Posts: 9

PostPosted: Wed Apr 28, 2010 6:23 pm    Post subject: Reply with quote

The cause was #ungag:

I used a #gag {%*} to gag all of a mud's banner spam, and the proceeding #ungag {%*} removed all gags, not just the one.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Wed Apr 28, 2010 9:18 pm    Post subject: Reply with quote

If there's no gag that matches {%*} tt++ will try a regex match, which will indeed remove all gags.

Safest is probably to assign a gag like that to a class, and use #class kill to remove it.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group