Add CIRCNetwork::ExpandString

This commit is contained in:
Kyle Fuller
2011-09-12 16:16:49 +00:00
parent 6686c0de79
commit fa7ec788dd
9 changed files with 42 additions and 11 deletions

View File

@@ -568,7 +568,11 @@ bool CClient::SendMotd() {
}
for (unsigned int a = 0; a < vsMotd.size(); a++) {
PutStatusNotice(m_pUser->ExpandString(vsMotd[a]));
if (m_pNetwork) {
PutStatusNotice(m_pNetwork->ExpandString(vsMotd[a]));
} else {
PutStatusNotice(m_pUser->ExpandString(vsMotd[a]));
}
}
return true;