From 8bca9a9b322acda2e514d0d423f5664077417316 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Mon, 9 Jul 2007 06:19:57 +0000 Subject: [PATCH] Replaced deprecated functions in helpers.inc --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401089 --- plugins/include/helpers.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/include/helpers.inc b/plugins/include/helpers.inc index 295b07ea..6b1eec15 100644 --- a/plugins/include/helpers.inc +++ b/plugins/include/helpers.inc @@ -65,11 +65,11 @@ stock FormatUserLogText(client, String:buffer[], maxlength) new userid = GetClientUserId(client); if (!GetClientAuthString(client, auth, sizeof(auth))) { - StrCopy(auth, sizeof(auth), "UNKNOWN"); + strcopy(auth, sizeof(auth), "UNKNOWN"); } if (!GetClientName(client, name, sizeof(name))) { - StrCopy(name, sizeof(name), "UNKNOWN"); + strcopy(name, sizeof(name), "UNKNOWN"); } /** Currently, no team stuff ... */ @@ -95,7 +95,7 @@ stock Handle:FindPluginByFile(const String:filename[]) pl = ReadPlugin(iter); GetPluginFilename(pl, buffer, sizeof(buffer)); - if (StrCompare(buffer, filename) == 0) + if (strcmp(buffer, filename, false) == 0) { CloseHandle(iter); return pl; @@ -142,7 +142,7 @@ stock SearchForClients(const String:pattern[], clients[], maxClients) continue; } GetClientName(i, name, sizeof(name)); - if (StrEqual(name, pattern, false)) + if (strcmp(name, pattern, false) == 0) { clients[0] = i; return 1;