View Single Post
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 10-04-2016 , 17:28   Re: [Any?] Double Quote Fix
Reply With Quote #11

Quote:
Originally Posted by ddhoward View Post
I don't think that this will cause any problems with regards to that, no. However, you've made me realize that I could probably run a StrContains near the top of the function to check for any true doublequotes. If any are found, then immediately return Plugin_Continue. [I]This paragraph was written in response to a part of the previous post that has been edited out.

In regards to the listener firing twice, that shouldn't be an issue.
Yeah I had noticed that you were covering most of the cases with true double quotes or 'say' anyways so a client sneaking in real double quotes using console-say plus a command chat trigger wasn't an issue, so I edited that bit out.

(Unless it is something you need to consider ¯\_(ツ)_/¯)

EDIT: Just noticed that the following in console:
Code:
say !sm_rename @me 'FS (nosound)'
results in my name changing to:
Code:
FS (nosound)
Where typically it would change to
Code:
'FS
with single quotes.
This is a super edge case, obviously, and can also serve as idiot-proofing, I suppose.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 10-04-2016 at 20:14.
FlaminSarge is offline