summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index e7ecb56a1..495a4658b 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -1001,8 +1001,7 @@ void purge_empty_chans(userrec* u)
}
}
- if (*u->oper)
- DeleteOper(u);
+ u->UnOper();
}