Added # to front of chan name if it doesn't start with # or \&

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@212 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-04-30 19:10:10 +00:00
parent 67bc4894ee
commit 22840ca24c

View File

@@ -5,6 +5,11 @@
CChan::CChan(const string& sName, CUser* pUser) {
m_sName = sName;
if (CUtils::Left(m_sName, 1) != "#" && CUtils::Left(m_sName, 1) != "&") {
m_sName = "#" + m_sName;
}
m_pUser = pUser;
m_bAutoCycle = true;
m_bDetached = false;