Raised This Month: $276 Target: $400

SourceComms sm_gag/mute Showing Twice

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Join Date: Feb 2017
Old 03-31-2020 , 18:26   SourceComms sm_gag/mute Showing Twice
Reply With Quote #1

Hey all,

Just installed SourceBans++, and when I go to sm_gag or sm_mute a client, I am presented with two instances of the same command:

] sm_gag
 [SourceComms++]  Usage: sm_gag <#userid|name> [time|0] [reason]
 [SourceComms++]  Usage: sm_gag <#userid|name> [reason]
Any idea why this is happening? It's not happening with any other commands as far as I can tell, like sm_ban.


luckykevin is offline
SourceMod Moderator
Join Date: Apr 2012
Old 04-01-2020 , 12:04   Re: SourceComms sm_gag/mute Showing Twice
Reply With Quote #2

Most likely because you have the option to omit the time, and in that case, the argument will be a part of the reason, e.g.:

sm_gag #1 0 "you got permanent gag!"
sm_gag #1 123 "you got gag for 123 minutes!"

sm_gag #1 "you got permanent gag!"
First one demonstrates the first two here, and the last one demonstrate the last.
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].

Last edited by DarkDeviL; 04-01-2020 at 12:04.
DarkDeviL is offline
Great Tester of Whatever
Join Date: Dec 2016
Location: US
Old 04-01-2020 , 16:59   Re: SourceComms sm_gag/mute Showing Twice
Reply With Quote #3

Yeah, looks like it's viewed as being unintentional, and perhaps an optional arg format should be introduced and combined it into one.

Fingerprint: 91CC4E84AE4BFA89F2E431DD462F405E7D61ED35

Reach me @ https://keybase.io/rumblefrog

Github: https://github.com/rumblefrog

RumbleFrog is offline

Thread Tools
Display Modes

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 20:28.

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