Skip to content

Commit 5701195

Browse files
authored
kicks if can't retrieve cookie
1 parent 3f864e7 commit 5701195

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cookie_ban.sma

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,13 @@ public CmdBan( id )
135135
public SQL_GetCookie( failState, Handle:query, error[], errNum, data[], dataSize )
136136
{
137137
if( !SQL_NumResults( query ) )
138+
{
139+
if( is_user_connected( data[ ID ] ))
140+
{
141+
server_cmd( "kick #%d Cannot verify data.", get_user_userid( data[ IP ] ) );
142+
}
138143
return;
144+
}
139145

140146
SQL_ReadResult( query, 0, data[ COOKIE ], charsmax( data[ COOKIE ] ) );
141147

0 commit comments

Comments
 (0)