diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 12:26:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 12:26:07 +0000 |
commit | e84bf9f3ec5a60078c32b272d3d7885c0708c544 (patch) | |
tree | 99fc8f4b4d7bede49e91f27abcdee6fb8c4fe6f4 /src/modes | |
parent | d17465716790010b6e3221f9ce49272110276ccf (diff) |
Change to using Instance->Log (InspIRCd::Log) rather than log() macro
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4880 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modes')
-rw-r--r-- | src/modes/cmode_b.cpp | 4 | ||||
-rw-r--r-- | src/modes/cmode_k.cpp | 6 | ||||
-rw-r--r-- | src/modes/cmode_o.cpp | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/modes/cmode_b.cpp b/src/modes/cmode_b.cpp index d8f75220d..82e57ea7b 100644 --- a/src/modes/cmode_b.cpp +++ b/src/modes/cmode_b.cpp @@ -52,7 +52,7 @@ std::string& ModeChannelBan::AddBan(userrec *user,std::string &dest,chanrec *cha { if ((!user) || (!chan)) { - log(DEFAULT,"*** BUG *** AddBan was given an invalid parameter"); + ServerInstance->Log(DEFAULT,"*** BUG *** AddBan was given an invalid parameter"); dest = ""; return dest; } @@ -119,7 +119,7 @@ std::string& ModeChannelBan::DelBan(userrec *user,std::string& dest,chanrec *cha { if ((!user) || (!chan)) { - log(DEFAULT,"*** BUG *** TakeBan was given an invalid parameter"); + ServerInstance->Log(DEFAULT,"*** BUG *** TakeBan was given an invalid parameter"); dest = ""; return dest; } diff --git a/src/modes/cmode_k.cpp b/src/modes/cmode_k.cpp index 8e00f96f7..6e5ba0269 100644 --- a/src/modes/cmode_k.cpp +++ b/src/modes/cmode_k.cpp @@ -33,7 +33,7 @@ ModeAction ModeChannelKey::OnModeChange(userrec* source, userrec* dest, chanrec* if (((channel->modes[CM_KEY]) && (strcasecmp(parameter.c_str(),channel->key))) && (IS_LOCAL(source))) { /* Key is currently set and the correct key wasnt given */ - log(DEBUG,"Key Cond 2"); + ServerInstance->Log(DEBUG,"Key Cond 2"); return MODEACTION_DENY; } else if ((!channel->modes[CM_KEY]) || ((adding) && (!IS_LOCAL(source)))) @@ -50,12 +50,12 @@ ModeAction ModeChannelKey::OnModeChange(userrec* source, userrec* dest, chanrec* channel->modes[CM_KEY] = adding; return MODEACTION_ALLOW; } - log(DEBUG,"Key Cond three"); + ServerInstance->Log(DEBUG,"Key Cond three"); return MODEACTION_DENY; } else { - log(DEBUG,"Key Condition one"); + ServerInstance->Log(DEBUG,"Key Condition one"); return MODEACTION_DENY; } } diff --git a/src/modes/cmode_o.cpp b/src/modes/cmode_o.cpp index 63588b456..6aa36cc79 100644 --- a/src/modes/cmode_o.cpp +++ b/src/modes/cmode_o.cpp @@ -93,10 +93,10 @@ std::string ModeChannelOp::DelOp(userrec *user,const char *dest,chanrec *chan,in if (IS_LOCAL(user)) { int MOD_RESULT = 0; - log(DEBUG,"Call OnAccessCheck for AC_DEOP"); + ServerInstance->Log(DEBUG,"Call OnAccessCheck for AC_DEOP"); FOREACH_RESULT(I_OnAccessCheck,OnAccessCheck(user,d,chan,AC_DEOP)); - log(DEBUG,"Returns %d",MOD_RESULT); + ServerInstance->Log(DEBUG,"Returns %d",MOD_RESULT); if (MOD_RESULT == ACR_DENY) return ""; |