summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-14 23:59:43 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-03-14 23:59:43 +0000
commitd7b1e9fb444b1e9c71dd863b1f33ada09197a0f4 (patch)
treea4805ae44e3271b7ad0f6c86d87fa22aa13487c5 /src/users.cpp
parent1e917014ae92493e14e5ad10305139d71162d0e0 (diff)
Add <options:cyclehostsfromuser> to configure source for mode changes on host cycle
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12636 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index d30526186..8aeb4a1f6 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -1393,7 +1393,9 @@ void User::DoHostCycle(const std::string &quitline)
{
for(unsigned int i=0; i < memb->modes.length(); i++)
modeline.append(" ").append(nick);
- snprintf(buffer, MAXBUF, ":%s MODE %s +%s", GetFullHost().c_str(), c->name.c_str(), modeline.c_str());
+ snprintf(buffer, MAXBUF, ":%s MODE %s +%s",
+ ServerInstance->Config->CycleHostsFromUser ? GetFullHost().c_str() : ServerInstance->Config->ServerName.c_str(),
+ c->name.c_str(), modeline.c_str());
modeline = buffer;
}