Update plugins for transitional methods.

This commit is contained in:
David Anderson
2014-12-13 13:29:15 -08:00
parent 722a23c818
commit 1328984e0b
48 changed files with 620 additions and 620 deletions
+6 -6
View File
@@ -86,7 +86,7 @@ public Action:Command_Cookie(client, args)
}
}
CloseHandle(iter);
delete iter;
return Plugin_Handled;
}
@@ -102,7 +102,7 @@ public Action:Command_Cookie(client, args)
new Handle:cookie = FindClientCookie(name);
if (cookie == INVALID_HANDLE)
if (cookie == null)
{
ReplyToCommand(client, "[SM] %t", "Cookie not Found", name);
return Plugin_Handled;
@@ -113,7 +113,7 @@ public Action:Command_Cookie(client, args)
if (access == CookieAccess_Private)
{
ReplyToCommand(client, "[SM] %t", "Cookie not Found", name);
CloseHandle(cookie);
delete cookie;
return Plugin_Handled;
}
@@ -125,14 +125,14 @@ public Action:Command_Cookie(client, args)
GetClientCookie(client, cookie, value, sizeof(value));
ReplyToCommand(client, "[SM] %t", "Cookie Value", name, value);
CloseHandle(cookie);
delete cookie;
return Plugin_Handled;
}
if (access == CookieAccess_Protected)
{
ReplyToCommand(client, "[SM] %t", "Protected Cookie", name);
CloseHandle(cookie);
delete cookie;
return Plugin_Handled;
}
@@ -141,7 +141,7 @@ public Action:Command_Cookie(client, args)
GetCmdArg(2, value, sizeof(value));
SetClientCookie(client, cookie, value);
CloseHandle(cookie);
delete cookie;
ReplyToCommand(client, "[SM] %t", "Cookie Changed Value", name, value);
return Plugin_Handled;