summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-26 15:00:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-26 15:00:06 +0000
commit9a60d7454d57019a28221f63905ce3dbb7310f07 (patch)
treea81fa3c30852174dda608894dbc7a063d742850e
parent2428b941984c4bfcc52655fb890c90a274404c44 (diff)
Added some fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@738 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/message.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/message.cpp b/src/message.cpp
index a86f84ea2..eb25a672c 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -328,9 +328,9 @@ char* cmode(userrec *user, chanrec *chan)
int i;
for (int i = 0; i != MAXCHANS; i++)
{
- if (u->chans[i].channel)
+ if (user->chans[i].channel)
{
- if ((!strcasecmp(u->chans[i].channel->name,chan->name)) && (chan != NULL))
+ if ((!strcasecmp(user->chans[i].channel->name,chan->name)) && (chan != NULL))
{
if ((user->chans[i].uc_modes & UCMODE_OP) > 0)
{
@@ -364,9 +364,9 @@ int cstatus(userrec *user, chanrec *chan)
for (int i = 0; i != MAXCHANS; i++)
{
- if (u->chans[i].channel)
+ if (user->chans[i].channel)
{
- if ((!strcasecmp(u->chans[i].channel->name,chan->name)) && (chan != NULL))
+ if ((!strcasecmp(user->chans[i].channel->name,chan->name)) && (chan != NULL))
{
if ((user->chans[i].uc_modes & UCMODE_OP) > 0)
{