CClient: add ATTACH command

The main benefit is that (unlike JOIN) ATTACH allows wildcards.
It's also nicely symmetric with DETACH.
This commit is contained in:
J-P Nurmi
2015-09-08 00:17:02 +02:00
parent 832430659f
commit 7f03484899
3 changed files with 48 additions and 1 deletions
+1
View File
@@ -258,6 +258,7 @@ private:
void EchoMessage(const CMessage& Message);
std::set<CChan*> MatchChans(const CString& sPatterns) const;
unsigned int AttachChans(const std::set<CChan*>& sChans);
unsigned int DetachChans(const std::set<CChan*>& sChans);
protected: