summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 3dcfec5dc..61fc362c7 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -177,7 +177,7 @@ const char* ModeParser::Grant(userrec *d,chanrec *chan,int MASK)
{
return "";
}
- n->uc_modes = ((ucrec*)(*i))->uc_modes | MASK;
+ n->uc_modes = n->uc_modes | MASK;
switch (MASK)
{
case UCMODE_OP: