Split constructor channel argument into chan/key

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@216 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-04-30 19:18:21 +00:00
parent ecd587c574
commit 324cb165b2
+2 -1
View File
@@ -4,7 +4,8 @@
#include "Utils.h"
CChan::CChan(const string& sName, CUser* pUser) {
m_sName = sName;
m_sName = CUtils::Token(sName, 0);
m_sKey = CUtils::Token(sName, 1);
if (CUtils::Left(m_sName, 1) != "#" && CUtils::Left(m_sName, 1) != "&") {
m_sName = "#" + m_sName;