Raised This Month: $ Target: $400
 0% 

[Any?] Double Quote Fix


Post New Thread Reply   
 
Thread Tools Display Modes
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
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 10-05-2016 , 01:02   Re: [Any?] Double Quote Fix
Reply With Quote #12

Hmm, I see what you mean. The case is this:
  • A client is using the say command through the console
  • The say command itself triggers a registered command
  • The arguments for said command contain singlequote marks that might wrongly be processed by this plugin

This is a pretty unlikely scenario, but in the event that someone actually does run into this problem, I'd recommend temporarily deactivating the feature of this plugin. (This can be done through the /settings menu.)

Next version will include a check to see if the command arguments already contain any true doublequote marks (if it does, then don't modify anything) as well as hopefully preparing for the upcoming forced changes to Updater integration.
__________________
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 01-15-2018 , 19:43   Re: [Any?] Double Quote Fix
Reply With Quote #13

Updated to 18.0115.0. This update:
  • updates the version of my ddhoward_updater include used
  • changes the plugin's two main cvars with respect to what values do what
  • minor optimizations
__________________
ddhoward is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 02-21-2018 , 00:15   Re: [Any?] Double Quote Fix
Reply With Quote #14

I noticed that the smart change functionality stops at the first pair it finds. Is this intended?
It doesn't do so well with things like sm_vote e.g.
!vote "Test vote" "Test answer 1" "Test answer 2"
FS : !vote 'Test vote' 'Test answer 1' 'Test answer 2'
*Started vote: Test vote?
1. 'Test
2. answer
3. 1'
4. 'Test
5. answer
__________________
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.
FlaminSarge is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 02-21-2018 , 01:23   Re: [Any?] Double Quote Fix
Reply With Quote #15

Updated to version 18.0220.0. Fixes the above issue pointed out by FlaminSarge. Silly mistake on my part.
__________________
ddhoward is offline
mdrxd100
New Member
Join Date: Nov 2018
Old 01-22-2019 , 22:14   Re: [Any?] Double Quote Fix
Reply With Quote #16

Great plugin, fixes a problem that has been there forever.
mdrxd100 is offline
alexjoyjames55
Junior Member
Join Date: Apr 2024
Old 04-30-2024 , 08:50   Re: [Any?] Double Quote Fix
Reply With Quote #17

At Happiness Mountain, we nurture a positive mindset through transformative practices and empowering resources. Our programs focus on gratitude Positive Mindset, mindfulness, and positive affirmations, fostering a resilient and optimistic outlook on life. Through workshops, coaching, and community support, we help individuals overcome challenges, cultivate self-belief, and embrace a fulfilling life. Join us at Happiness Mountain and unlock the power of a positive mindset to thrive and achieve your goals.
alexjoyjames55 is offline
alexjoyjames55
Junior Member
Join Date: Apr 2024
Old 05-01-2024 , 06:18   selling a business
Reply With Quote #18

Selling a business with bizindecate involves leveraging data-driven insights and market analytics to optimize the sales process selling a business. Through comprehensive analysis and strategic positioning, bizindecate helps sellers maximize value, identify potential buyers, and navigate negotiations for a successful transaction.
alexjoyjames55 is offline
alexjoyjames55
Junior Member
Join Date: Apr 2024
Old 05-01-2024 , 07:40   Re: [Any?] Double Quote Fix
Reply With Quote #19

Ensure your safety and peace of mind with TheLuxAuto's professional security escort service. Our highly trained security personnel provide discreet and reliable protection during your travels, whether it's for VIP events, corporate meetings, or personal safety needs security escort service. With a focus on confidentiality and professionalism, we tailor our security escort services to meet your specific requirements, ensuring a secure and comfortable experience throughout your journey. Travel confidently with TheLuxAuto's premier security escort service.
alexjoyjames55 is offline
alexjoyjames55
Junior Member
Join Date: Apr 2024
Old 05-02-2024 , 03:50   Re: [Any?] Double Quote Fix
Reply With Quote #20

¡Descubre una amplia variedad de juegos gratis en línea en juegos-gratis.com! Sumérgete en emocionantes aventuras, resuelve desafiantes rompecabezas Juegos, disfruta de juegos de estrategia y acción, y mucho más. Con nuestra colección en constante crecimiento, siempre encontrarás algo nuevo y emocionante para jugar. ¡No necesitas registrarte ni descargar nada, solo entra y diviértete con nuestros juegos gratis para todas las edades!
alexjoyjames55 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode