aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/fident.cpp
diff options
context:
space:
mode:
authorGravatar danieldg2009-09-02 00:52:12 +0000
committerGravatar danieldg2009-09-02 00:52:12 +0000
commitcdf850dcbbd3153bceaed15ee2d3b42f568c9bf3 (patch)
tree090560df0e4be54d6ef2e35f4d39e29547bba717 /src/modules/m_spanningtree/fident.cpp
parentMake CHECK work remotely with optional second parameter (diff)
downloadinspircd++-cdf850dcbbd3153bceaed15ee2d3b42f568c9bf3.tar.gz
inspircd++-cdf850dcbbd3153bceaed15ee2d3b42f568c9bf3.tar.bz2
inspircd++-cdf850dcbbd3153bceaed15ee2d3b42f568c9bf3.zip
Add OnChangeIdent and FIDENT support
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11652 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/fident.cpp')
-rw-r--r--src/modules/m_spanningtree/fident.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/fident.cpp b/src/modules/m_spanningtree/fident.cpp
new file mode 100644
index 000000000..0744d9bf2
--- /dev/null
+++ b/src/modules/m_spanningtree/fident.cpp
@@ -0,0 +1,37 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
+ *
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#include "inspircd.h"
+#include "xline.h"
+
+#include "treesocket.h"
+#include "treeserver.h"
+#include "utils.h"
+
+/* $ModDep: m_spanningtree/utils.h m_spanningtree/treeserver.h m_spanningtree/treesocket.h */
+
+
+bool TreeSocket::ChangeIdent(const std::string &prefix, parameterlist &params)
+{
+ if (params.size() < 1)
+ return true;
+ User* u = this->ServerInstance->FindNick(prefix);
+ if (u)
+ {
+ u->ChangeIdent(params[0].c_str());
+ params[0] = ":" + params[0];
+ Utils->DoOneToAllButSender(prefix,"FIDENT",params,u->server);
+ }
+ return true;
+}
+