4343// Do not edit below this line //
4444//-----------------------------//
4545
46- #define PLUGIN_VERSION " 1.8.1"
4746#define PREFIX " \x04 [SourceComms++]\x01 "
4847
4948//GLOBAL DEFINES
@@ -134,10 +133,10 @@ int
134133
135134SMCParser ConfigParser ;
136135
137- Handle
138- g_hFwd_OnPlayerPunished
139- , g_hFwd_OnPlayerUnpunished
140- , g_hGagExpireTimer [MAXPLAYERS + 1 ] = { null , ... }
136+ GlobalForward g_hFwd_OnPlayerPunished
137+ , g_hFwd_OnPlayerUnpunished ;
138+
139+ Handle g_hGagExpireTimer [MAXPLAYERS + 1 ] = { null , ... }
141140 , g_hMuteExpireTimer [MAXPLAYERS + 1 ] = { null , ... };
142141
143142bType g_MuteType [MAXPLAYERS + 1 ];
@@ -170,7 +169,7 @@ public Plugin myinfo =
170169 name = " SourceBans++: SourceComms" ,
171170 author = " Alex, SourceBans++ Dev Team" ,
172171 description = " Advanced punishments management for the Source engine in SourceBans style" ,
173- version = PLUGIN_VERSION ,
172+ version = SBPPComms_VERSION ,
174173 url = " https://sbpp.github.io"
175174};
176175
@@ -203,7 +202,7 @@ public void OnPluginStart()
203202 CvarPort = FindConVar (" hostport" );
204203 g_hServersWhiteList = new ArrayList ();
205204
206- CreateConVar (" sourcecomms_version" , PLUGIN_VERSION , _ , FCVAR_SPONLY | FCVAR_REPLICATED | FCVAR_NOTIFY );
205+ CreateConVar (" sourcecomms_version" , SBPPComms_VERSION , _ , FCVAR_SPONLY | FCVAR_REPLICATED | FCVAR_NOTIFY );
207206 AddCommandListener (CommandCallback , " sm_gag" );
208207 AddCommandListener (CommandCallback , " sm_mute" );
209208 AddCommandListener (CommandCallback , " sm_silence" );
@@ -222,7 +221,7 @@ public void OnPluginStart()
222221 #endif
223222
224223 #if defined DEBUG
225- PrintToServer (" Sourcecomms plugin loading. Version %s " , PLUGIN_VERSION );
224+ PrintToServer (" Sourcecomms plugin loading. Version %s " , SBPPComms_VERSION );
226225 #endif
227226
228227 // Catch config error
@@ -660,7 +659,7 @@ public Action CommandCallback(int client, const char[] command, int args)
660659 if (type <= TYPE_SILENCE )
661660 CreateBlock (client , _ , _ , type , _ , sBuffer );
662661 else
663- ProcessUnBlock (client , _ , type , _ , sBuffer );
662+ ProcessUnBlock (client , _ , type , sBuffer );
664663
665664 return Plugin_Stop ;
666665}
@@ -2430,10 +2429,10 @@ stock void CreateBlock(int client, int targetId = 0, int length = -1, int type,
24302429 return ;
24312430}
24322431
2433- stock void ProcessUnBlock (int client , int targetId = 0 , int type , char [] sReason = " " , const char [] sArgs = " " )
2432+ stock void ProcessUnBlock (int client , int targetId = 0 , int type , char [] sReason = " " )
24342433{
24352434 #if defined DEBUG
2436- PrintToServer (" ProcessUnBlock(admin: %d , target: %d , type: %d , reason: %s , args: %s )" , client , targetId , type , sReason , sArgs );
2435+ PrintToServer (" ProcessUnBlock(admin: %d , target: %d , type: %d , reason: %s )" , client , targetId , type , sReason );
24372436 #endif
24382437
24392438 int target_list [MAXPLAYERS ], target_count ;
0 commit comments