summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_sanick.cpp8
-rw-r--r--src/modules/m_sha256.cpp10
-rw-r--r--src/modules/m_swhois.cpp4
-rw-r--r--src/modules/m_xmlsocket.cpp6
4 files changed, 14 insertions, 14 deletions
diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp
index 8b5e2f5a6..3f7affa8e 100644
--- a/src/modules/m_sanick.cpp
+++ b/src/modules/m_sanick.cpp
@@ -29,10 +29,10 @@ class CommandSanick : public Command
CmdResult Handle (const char** parameters, int pcnt, User *user)
{
- User* source = ServerInstance->FindNick(parameters[0]);
- if (source)
+ User* target = ServerInstance->FindNick(parameters[0]);
+ if (target)
{
- if (ServerInstance->ULine(source->server))
+ if (ServerInstance->ULine(target->server))
{
user->WriteServ("990 %s :Cannot use an SA command on a u-lined client",user->nick);
return CMD_FAILURE;
@@ -40,7 +40,7 @@ class CommandSanick : public Command
std::string oldnick = user->nick;
if (ServerInstance->IsNick(parameters[1]))
{
- if (source->ForceNickChange(parameters[1]))
+ if (target->ForceNickChange(parameters[1]))
{
ServerInstance->SNO->WriteToSnoMask('A', oldnick+" used SANICK to change "+std::string(parameters[0])+" to "+parameters[1]);
return CMD_SUCCESS;
diff --git a/src/modules/m_sha256.cpp b/src/modules/m_sha256.cpp
index 22937abf5..febfd8820 100644
--- a/src/modules/m_sha256.cpp
+++ b/src/modules/m_sha256.cpp
@@ -134,12 +134,12 @@ uint32_t sha256_k[64] =
class ModuleSHA256 : public Module
{
- void SHA256Init(SHA256Context *ctx, const unsigned int* key)
+ void SHA256Init(SHA256Context *ctx, const unsigned int* ikey)
{
- if (key)
+ if (ikey)
{
for (int i = 0; i < 8; i++)
- ctx->h[i] = key[i];
+ ctx->h[i] = ikey[i];
}
else
{
@@ -236,12 +236,12 @@ class ModuleSHA256 : public Module
UNPACK32(ctx->h[i], &digest[i << 2]);
}
- void SHA256(const char *src, char *dest, int len, const char* hxc, const unsigned int* key = NULL)
+ void SHA256(const char *src, char *dest, int len, const char* hxc, const unsigned int* ikey = NULL)
{
// Generate the hash
unsigned char bytehash[SHA256_DIGEST_SIZE];
SHA256Context ctx;
- SHA256Init(&ctx, key);
+ SHA256Init(&ctx, ikey);
SHA256Update(&ctx, (unsigned char *)src, (unsigned int)len);
SHA256Final(&ctx, bytehash);
// Convert it to hex
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp
index 7247f579b..44acd1487 100644
--- a/src/modules/m_swhois.cpp
+++ b/src/modules/m_swhois.cpp
@@ -204,8 +204,8 @@ class ModuleSWhois : public Module
std::string* text;
if (!dest->GetExt("swhois", text))
{
- std::string* text = new std::string(extdata);
- dest->Extend("swhois",text);
+ std::string* text2 = new std::string(extdata);
+ dest->Extend("swhois",text2);
}
}
}
diff --git a/src/modules/m_xmlsocket.cpp b/src/modules/m_xmlsocket.cpp
index bf50fe012..b18904ed8 100644
--- a/src/modules/m_xmlsocket.cpp
+++ b/src/modules/m_xmlsocket.cpp
@@ -59,9 +59,9 @@ class ModuleXMLSocket : public Module
if (ServerInstance->Config->AddIOHook(portno, this))
{
listenports.push_back(portno);
- for (size_t i = 0; i < ServerInstance->Config->ports.size(); i++)
- if (ServerInstance->Config->ports[i]->GetPort() == portno)
- ServerInstance->Config->ports[i]->SetDescription("xml");
+ for (size_t j = 0; j < ServerInstance->Config->ports.size(); j++)
+ if (ServerInstance->Config->ports[j]->GetPort() == portno)
+ ServerInstance->Config->ports[j]->SetDescription("xml");
}
else
{