diff options
author | George Hazan <ghazan@miranda.im> | 2016-12-27 22:06:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2016-12-27 22:06:02 +0300 |
commit | 8db6b3f25e173f7c305580fad8cbd67a7121b169 (patch) | |
tree | e12f6518d302efc46f159c6a3bf35fce471076a6 /protocols/Discord/src/utils.cpp | |
parent | cd689cb08d614fb2f405167debec66c7c2ef6843 (diff) |
implementation of CDiscordProto::SetStatus
Diffstat (limited to 'protocols/Discord/src/utils.cpp')
-rw-r--r-- | protocols/Discord/src/utils.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp new file mode 100644 index 0000000000..a542a4a7c5 --- /dev/null +++ b/protocols/Discord/src/utils.cpp @@ -0,0 +1,25 @@ +/* +Copyright © 2016 Miranda NG team + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include "stdafx.h" + +void CDiscordProto::SetAllContactStatuses(int status) +{ + for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) + if (!getByte(hContact, "ChatRoom")) + setWord(hContact, "Status", (WORD)status); +} |