summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
{