Room info popup is now onMouseOver instead of onClick
[citadel.git] / webcit / roomtokens.c
index cff35cdf560cb66923f4d2bba5784ef028bd967d..917ac5a948ba614c447705343eb261ec78cac1d3 100644 (file)
@@ -470,8 +470,10 @@ void tmplput_ThisRoomInfoText(StrBuf *Target, WCTemplputParams *TP)
                /* only a certain number of characters */
                StrBuf *SubBuf;
                SubBuf = NewStrBufDup(WCC->CurRoom.XInfoText);
-               StrBuf_Utf8StrCut(SubBuf, nchars);
-               StrBufAppendBufPlain(SubBuf, HKEY("..."), 0);
+               if (StrLength(SubBuf) > nchars) {
+                       StrBuf_Utf8StrCut(SubBuf, nchars);
+                       StrBufAppendBufPlain(SubBuf, HKEY("..."), 0);
+               }
                StrBufAppendTemplate(Target, TP, SubBuf, 1);
                FreeStrBuf(&SubBuf);
        }