summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-06 13:49:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-06 13:49:34 +0000
commitb790abb1545fc22d0f6799f48d4b7df22711db8a (patch)
tree0fccc47a24f0285e89977302c5465f956cf854e9 /src/xline.cpp
parent767fc7ad41553d8f18988d2330d99c5c89f994e4 (diff)
This properly fixes options:hidebans and options:hidesplits by providing the facility to have two different quit messages for a user, one an oper sees and one a normal user sees.
There are default values on the oper_quit parameters through the entire source so that if oper_quit parameter is not given it defaults to the same as the user_quit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6630 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 1996925de..343f4d504 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -684,7 +684,7 @@ void XLineManager::apply_lines(const int What)
if ((check = matches_gline(u,true)))
{
snprintf(reason,MAXBUF,"G-Lined: %s",check->reason);
- ServerInstance->GlobalCulls.AddItem(u,reason);
+ ServerInstance->GlobalCulls.AddItem(u, "G-Lined", reason);
}
}
@@ -693,7 +693,7 @@ void XLineManager::apply_lines(const int What)
if ((check = matches_kline(u,true)))
{
snprintf(reason,MAXBUF,"K-Lined: %s",check->reason);
- ServerInstance->GlobalCulls.AddItem(u,reason);
+ ServerInstance->GlobalCulls.AddItem(u, "K-Lined", reason);
}
}
@@ -702,7 +702,7 @@ void XLineManager::apply_lines(const int What)
if ((check = matches_qline(u->nick,true)))
{
snprintf(reason,MAXBUF,"Q-Lined: %s",check->reason);
- ServerInstance->GlobalCulls.AddItem(u,reason);
+ ServerInstance->GlobalCulls.AddItem(u, "Q-Lined", reason);
}
}
@@ -711,7 +711,7 @@ void XLineManager::apply_lines(const int What)
if ((check = matches_zline(u->GetIPString(),true)))
{
snprintf(reason,MAXBUF,"Z-Lined: %s",check->reason);
- ServerInstance->GlobalCulls.AddItem(u,reason);
+ ServerInstance->GlobalCulls.AddItem(u,"Z-Lined", reason);
}
}
}
@@ -740,7 +740,7 @@ void XLineManager::apply_lines(const int What)
if ((check = matches_gline(u)))
{
snprintf(reason,MAXBUF,"G-Lined: %s",check->reason);
- ServerInstance->GlobalCulls.AddItem(u,reason);
+ ServerInstance->GlobalCulls.AddItem(u, "G-Lined", reason);
}
}
if ((What & APPLY_KLINES) && (klines.size() || pklines.size()))
@@ -748,7 +748,7 @@ void XLineManager::apply_lines(const int What)
if ((check = matches_kline(u)))
{
snprintf(reason,MAXBUF,"K-Lined: %s",check->reason);
- ServerInstance->GlobalCulls.AddItem(u,reason);
+ ServerInstance->GlobalCulls.AddItem(u, "K-Lined", reason);
}
}
if ((What & APPLY_QLINES) && (qlines.size() || pqlines.size()))
@@ -756,15 +756,15 @@ void XLineManager::apply_lines(const int What)
if ((check = matches_qline(u->nick)))
{
snprintf(reason,MAXBUF,"Q-Lined: %s",check->reason);
- ServerInstance->GlobalCulls.AddItem(u,reason);
+ ServerInstance->GlobalCulls.AddItem(u, "Q-Lined", reason);
}
}
if ((What & APPLY_ZLINES) && (zlines.size() || pzlines.size()))
{
if ((check = matches_zline(u->GetIPString())))
{
- snprintf(reason,MAXBUF,"Z-Lined: %s",check->reason);
- ServerInstance->GlobalCulls.AddItem(u,reason);
+ snprintf(reason,MAXBUF,"Z-Lined: %s", check->reason);
+ ServerInstance->GlobalCulls.AddItem(u, "Z-Lined", reason);
}
}
}