Raised This Month: $51 Target: $400
 12% 

[ANY] Discord/Slack API (CallAdmin, SourceBans, ...)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 06-17-2020 , 00:59   Re: [ANY] Discord/Slack API (CallAdmin, SourceBans, ...)
Reply With Quote #21

I was using this to post chat messages to discord. I found that the plugin wasn't escaping things properly for some characters in the include file function Discord_EscapeString.

I replaced the function as follows and it worked.

PHP Code:
stock void Discord_EscapeString(char[] stringint maxlen)
{
    
ReplaceString(stringmaxlen"@""@");
    
ReplaceString(stringmaxlen"'""\\'");

The double quote didnt appear to need escape.
__________________

Last edited by ThatOneGuy; 06-17-2020 at 01:06.
ThatOneGuy is offline
 



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 19:30.


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