summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-06 01:16:05 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-06 01:16:05 +0000
commitb83387a930709a567005a98402765c37fc384a63 (patch)
tree2a0cf75570d37a03f2ce8a6dd56946bc69fe3412 /src/mode.cpp
parentf8f23a35adf98465b3f217f94da39371567e0a4d (diff)
Unneccessary strcasecmps
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3480 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 00369a96a..eef0481f7 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -94,7 +94,7 @@ char* ModeParser::GiveOps(userrec *user,char *dest,chanrec *chan,int status)
for (unsigned int i = 0; i < d->chans.size(); i++)
{
if ((d->chans[i].channel != NULL) && (chan != NULL))
- if (!strcasecmp(d->chans[i].channel->name,chan->name))
+ if (d->chans[i].channel == chan)
{
if (d->chans[i].uc_modes & UCMODE_OP)
{
@@ -150,7 +150,7 @@ char* ModeParser::GiveHops(userrec *user,char *dest,chanrec *chan,int status)
for (unsigned int i = 0; i < d->chans.size(); i++)
{
if ((d->chans[i].channel != NULL) && (chan != NULL))
- if (!strcasecmp(d->chans[i].channel->name,chan->name))
+ if (d->chans[i].channel == chan)
{
if (d->chans[i].uc_modes & UCMODE_HOP)
{
@@ -205,7 +205,7 @@ char* ModeParser::GiveVoice(userrec *user,char *dest,chanrec *chan,int status)
for (unsigned int i = 0; i < d->chans.size(); i++)
{
if ((d->chans[i].channel != NULL) && (chan != NULL))
- if (!strcasecmp(d->chans[i].channel->name,chan->name))
+ if (d->chans[i].channel == chan)
{
if (d->chans[i].uc_modes & UCMODE_VOICE)
{
@@ -261,7 +261,7 @@ char* ModeParser::TakeOps(userrec *user,char *dest,chanrec *chan,int status)
for (unsigned int i = 0; i < d->chans.size(); i++)
{
if ((d->chans[i].channel != NULL) && (chan != NULL))
- if (!strcasecmp(d->chans[i].channel->name,chan->name))
+ if (d->chans[i].channel == chan)
{
if ((d->chans[i].uc_modes & UCMODE_OP) == 0)
{
@@ -318,7 +318,7 @@ char* ModeParser::TakeHops(userrec *user,char *dest,chanrec *chan,int status)
for (unsigned int i = 0; i < d->chans.size(); i++)
{
if ((d->chans[i].channel != NULL) && (chan != NULL))
- if (!strcasecmp(d->chans[i].channel->name,chan->name))
+ if (d->chans[i].channel == chan)
{
if ((d->chans[i].uc_modes & UCMODE_HOP) == 0)
{
@@ -373,7 +373,7 @@ char* ModeParser::TakeVoice(userrec *user,char *dest,chanrec *chan,int status)
for (unsigned int i = 0; i < d->chans.size(); i++)
{
if ((d->chans[i].channel != NULL) && (chan != NULL))
- if (!strcasecmp(d->chans[i].channel->name,chan->name))
+ if (d->chans[i].channel == chan)
{
if ((d->chans[i].uc_modes & UCMODE_VOICE) == 0)
{