Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[Plus Emulator] Add Wordfilter
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Altercationz" data-source="post: 406456" data-attributes="member: 59038"><p>Decent for your second command.</p><p>No need to add the word variable, and why not just reset the filter so it can all be done in one command:</p><p>[CODE]</p><p> dbClient.SetQuery("INSERT INTO `wordfilter` (word, replacement, strict, addedby, bannable) VALUES (@word, @replace, '1', @username, '0');");</p><p> dbClient.AddParameter("word", Params[1]);</p><p> dbClient.AddParameter("replace", "censored");</p><p> dbClient.AddParameter("username", Session.GetHabbo().Username);</p><p> PlusEnvironment.GetGame().GetChatManager().GetFilter().Init(); // reset filter</p><p> dbClient.RunQuery();</p><p>[/CODE]</p><p>No need for the permission check either, that's what the permissions table is for <img src="/styles/default/xenforo/smilies/emojione/thumbsup.png" class="smilie" loading="lazy" alt=":up:" title="Thumbs Up :up:" data-shortname=":up:" /></p><p>Good release nonetheless.</p></blockquote><p></p>
[QUOTE="Altercationz, post: 406456, member: 59038"] Decent for your second command. No need to add the word variable, and why not just reset the filter so it can all be done in one command: [CODE] dbClient.SetQuery("INSERT INTO `wordfilter` (word, replacement, strict, addedby, bannable) VALUES (@word, @replace, '1', @username, '0');"); dbClient.AddParameter("word", Params[1]); dbClient.AddParameter("replace", "censored"); dbClient.AddParameter("username", Session.GetHabbo().Username); PlusEnvironment.GetGame().GetChatManager().GetFilter().Init(); // reset filter dbClient.RunQuery(); [/CODE] No need for the permission check either, that's what the permissions table is for :up: Good release nonetheless. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[Plus Emulator] Add Wordfilter
Top