summaryrefslogtreecommitdiff
path: root/src/modes/cmode_o.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 15:44:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 15:44:03 +0000
commitdafc021be4f3ad34ca37953de6a0109a161dd165 (patch)
treef6263063894fa0a923656d64d0e3e1351e0e205f /src/modes/cmode_o.cpp
parent667bf736370b1d632f6ff99ce32bdcd7f0de9b3f (diff)
cmode(), cflags(), cstatus() -> chanrec::GetStatusChar(), chanrec::GetStatusFlags(), chanrec::GetStatus()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4837 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modes/cmode_o.cpp')
-rw-r--r--src/modes/cmode_o.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes/cmode_o.cpp b/src/modes/cmode_o.cpp
index 580fcc636..4e60a1abd 100644
--- a/src/modes/cmode_o.cpp
+++ b/src/modes/cmode_o.cpp
@@ -31,7 +31,7 @@ ModePair ModeChannelOp::ModeSet(userrec* source, userrec* dest, chanrec* channel
userrec* x = ServerInstance->FindNick(parameter);
if (x)
{
- if (cstatus(x, channel) == STATUS_OP)
+ if (channel->GetStatus(x) == STATUS_OP)
{
return std::make_pair(true, x->nick);
}
@@ -45,7 +45,7 @@ ModePair ModeChannelOp::ModeSet(userrec* source, userrec* dest, chanrec* channel
ModeAction ModeChannelOp::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
{
- int status = cstatus(source, channel);
+ int status = channel->GetStatus(source);
/* Call the correct method depending on wether we're adding or removing the mode */
if (adding)