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

SourceComms sm_gag/mute Showing Twice


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
luckykevin
Member
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:

Code:
] 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.

Cheers,

Kevin
luckykevin is offline
DarkDeviL
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.:

Code:
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
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
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.
__________________
RumbleFrog is offline
Reply


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 11:09.


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