- Lord Snakie
- |
- Exalted Mythic Member
- gamertag: [none]
- user homepage:
“To say more would spoil be it’s overall its a game that needs to be played.” - Aristotle
Posted by: littlerat
Iggy or Sprool or whoever updates the coup sauce these days, I've made a few changes to the script to prevent stupid people from breaking the script with their " and ' and putting embed code as their avatars. I saw your old method for preventing ", but I think the way I implemented it would be more useful in the long term.
I've added 3 functions; addslashes(str), stripslashes(str) and CDB_ToArraySafe(str). add/strip slashes do what they say, CDB_ToArraySafe combines stripslashes and the escape functions. Thusly, most or all instances of the escape function were replaced with CDB_ToArraySafe. I made a few changes to the settings dialogue to accommodate the changes so it should all look seem-less. I also added a second line of comment up the top indicating who edited it last and when, but you don't have to worry about that.
Well hopefully this will prevent people from breaking the script.
Code am here
I completely do not understand your technical mumbo-jumbo because Snakie is stupid with scripting, but Iggy seems to think that Coup is inefficient. This seems to make me thing that Coup will be more efficient.
This seems to the Snakie as though this is what Iggy wants, but then again Snakie is tired and it is 5:00 in the morning.
Good job in lieu of me understanding whatever the hell you did. : \