Jump to content

CTC Chat Transform is overly optimistic

I am Bored

Recommended Posts

Currently, entering "CTC" into the chat transforms it into "Creature Transfer Code: CTC". This is way overly optimistic, and will trigger on phrases such as "CTC sent". 



The transform should instead check that CTC is followed by "[0-9]+[A-Z]{5}[0-9]{2}" (in the form of a regex)


The reason I do not suggest that it check for the presence of "MDC" is because a partial CTC, such as what is used to check information about the creature via clickables, should still be transformed.




The ITC (Item Transfer Code) and ATC (Avatar Transfer Code) transforms also suffer from the same problem, and can be solved with the same regex solution.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Forum Statistics

    Total Topics
    Total Posts
  • Recently Browsing

    • No registered users viewing this page.
  • Upcoming Events

    No upcoming events found
  • Recent Event Reviews

  • Create New...