summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/commands.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-11 14:37:42 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-11 14:37:42 +0200
commitce82bc069d42b0eb1076ddc4c3ec94db415c3eb0 (patch)
tree6b13fd5651de3f09d13b6f10556751e2fb60c258 /src/modules/m_spanningtree/commands.h
parentf3ebd00f119f322f2887f88c37d3fce7743d9587 (diff)
m_spanningtree Add CmdBuilder specialization for FJOIN
Diffstat (limited to 'src/modules/m_spanningtree/commands.h')
-rw-r--r--src/modules/m_spanningtree/commands.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/commands.h b/src/modules/m_spanningtree/commands.h
index 110b3d93d..e26b2b8eb 100644
--- a/src/modules/m_spanningtree/commands.h
+++ b/src/modules/m_spanningtree/commands.h
@@ -134,6 +134,19 @@ class CommandFJoin : public ServerCommand
public:
CommandFJoin(Module* Creator) : ServerCommand(Creator, "FJOIN", 3) { }
CmdResult Handle(User* user, std::vector<std::string>& params);
+
+ class Builder : public CmdBuilder
+ {
+ static const size_t maxline = 480;
+ std::string::size_type pos;
+
+ public:
+ Builder(Channel* chan);
+ void add(Membership* memb);
+ bool has_room(Membership* memb) const;
+ void clear();
+ const std::string& finalize();
+ };
};
class CommandFMode : public ServerCommand