diff options
| author | 2010-09-12 12:33:06 -0400 | |
|---|---|---|
| committer | 2010-09-12 12:33:06 -0400 | |
| commit | 375fac384e2f48c44dd61733d57482d67a501980 (patch) | |
| tree | 07c927994dd1cea3d43a0d4a5134623b97dbc1ec /src/modules/m_spanningtree/user.cpp | |
| parent | Move gnutls_dh_params into its own refcounted container object (diff) | |
Move RemoteUser into spanningtree
Diffstat (limited to 'src/modules/m_spanningtree/user.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/user.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/user.cpp b/src/modules/m_spanningtree/user.cpp new file mode 100644 index 000000000..14c73398a --- /dev/null +++ b/src/modules/m_spanningtree/user.cpp @@ -0,0 +1,12 @@ +#include "inspircd.h" +#include "treeserver.h" +#include "remoteuser.h" + +void RemoteUser::SendText(const std::string& line) +{ + char buf[MAXBUF+30]; + snprintf(buf, MAXBUF+30, ":%s PUSH %s :%s", + ServerInstance->Config->GetSID().c_str(), uuid.c_str(), line.c_str()); + TreeSocket* sock = srv->GetRoute()->GetSocket(); + sock->WriteLine(buf); +} |
