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

Comparing strings containing & character.

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



Joined: 16 Sep 2009
Posts: 3

PostPosted: Tue Sep 29, 2009 1:46 pm    Post subject: Comparing strings containing & character. Reply with quote

Playing with mapper I came across the following:
Code:

#debug all on
#message all on

#var roomname {Arbok Station (w, n, e, s)}
#var curname  {Arbok R&D Dept (n)}

#nop This one works

#if {"$curname" != "$roomname"}
{
   #showme mismatch;
}
{
   #showme matches;
}

#nop This one causes tt++ to exit without any warning

#if {"$roomname" != "$curname"} {#showme mismatch;} {#showme matches;}


( tintin-beta.tar.gz sept 03 )
Any idea what goes wrong here?

Stb
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Tue Sep 29, 2009 9:57 pm    Post subject: Reply with quote

No idea what is going wrong, but I'll look into it when I have time.

One alternative is using:

#regex {$curname} {$roomname} {true} {false}

which doesn't seem to be affected for some reason.
Back to top
View user's profile Send private message Send e-mail
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Wed Sep 30, 2009 9:04 am    Post subject: Reply with quote

Not exactly sure what caused it, but I made some changes that stop this crash from happening to the beta.

http://tintin.sourceforge.net/download/tintin-beta.tar.gz
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