summaryrefslogtreecommitdiff
path: root/src/modes/cmode_h.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes/cmode_h.cpp')
-rw-r--r--src/modes/cmode_h.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modes/cmode_h.cpp b/src/modes/cmode_h.cpp
index 9bd061cd2..a77366c82 100644
--- a/src/modes/cmode_h.cpp
+++ b/src/modes/cmode_h.cpp
@@ -84,6 +84,8 @@ ModeAction ModeChannelHalfOp::OnModeChange(userrec* source, userrec* dest, chanr
int status = channel->GetStatus(source);
+ ServerInstance->Log(DEBUG,"Halfop handler, source=%s channel=%s parameter=%s adding=%d",source->nick, channel->name, parameter.c_str(), adding);
+
/* Call the correct method depending on wether we're adding or removing the mode */
if (adding)
{
@@ -108,6 +110,8 @@ std::string ModeChannelHalfOp::AddHalfOp(userrec *user,const char* dest,chanrec
{
userrec *d = ServerInstance->Modes->SanityChecks(user,dest,chan,status);
+ ServerInstance->Log(DEBUG,"Add halfop");
+
if (d)
{
if (IS_LOCAL(user))
@@ -127,6 +131,7 @@ std::string ModeChannelHalfOp::AddHalfOp(userrec *user,const char* dest,chanrec
}
}
+ ServerInstance->Log(DEBUG,"Calling Grant");
return ServerInstance->Modes->Grant(d,chan,UCMODE_HOP);
}
return "";
@@ -136,6 +141,8 @@ std::string ModeChannelHalfOp::DelHalfOp(userrec *user,const char *dest,chanrec
{
userrec *d = ServerInstance->Modes->SanityChecks(user,dest,chan,status);
+ ServerInstance->Log(DEBUG,"Del halfop");
+
if (d)
{
if (IS_LOCAL(user))
@@ -155,6 +162,7 @@ std::string ModeChannelHalfOp::DelHalfOp(userrec *user,const char *dest,chanrec
}
}
+ ServerInstance->Log(DEBUG,"Calling revoke");
return ServerInstance->Modes->Revoke(d,chan,UCMODE_HOP);
}
return "";