mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
Revise CChan::JoinUser() & AttachUser()
The old AttachUser() that sent JOIN without topic or names replies would leave clients in incomplete/broken state. JoinUser() was doing two things; depending on passed arguments it was either joining user on the channel on IRC, or attaching clients (properly). Now JoinUser() joins the user on IRC, and AttachUser() attaches as expected from the method names.
This commit is contained in:
+2
-2
@@ -63,9 +63,9 @@ public:
|
||||
CConfig ToConfig() const;
|
||||
void Clone(CChan& chan);
|
||||
void Cycle() const;
|
||||
void JoinUser(bool bForce = false, const CString& sKey = "", CClient* pClient = NULL);
|
||||
void JoinUser(const CString& sKey = "");
|
||||
void AttachUser(CClient* pClient = NULL);
|
||||
void DetachUser();
|
||||
void AttachUser();
|
||||
|
||||
void OnWho(const CString& sNick, const CString& sIdent, const CString& sHost);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user