a7a60f18ba
Backport upstream fix reported by Olipro. Thanks! git-svn-id: svn://svn.openwrt.org/openwrt/packages@27798 3c298f89-4303-0410-b956-a3cf2f4a3e73
15 lines
305 B
Diff
15 lines
305 B
Diff
--- a/Chan.cpp
|
|
+++ b/Chan.cpp
|
|
@@ -417,9 +417,10 @@ bool CChan::AddNick(const CString& sNick
|
|
// Get the nick
|
|
sTmp = sTmp.Token(0, false, "!");
|
|
|
|
+ CNick tmpNick(sTmp);
|
|
CNick* pNick = FindNick(sTmp);
|
|
if (!pNick) {
|
|
- pNick = new CNick(sTmp);
|
|
+ pNick = &tmpNick;
|
|
pNick->SetUser(m_pUser);
|
|
}
|
|
|