コード例 #1
0
        /// <summary>
        /// Sets the configuration values for the messenger.
        /// </summary>
        public void setConfiguration()
        {
            this._maxBuddyListLength = Configuration.getNumericConfigurationValue("users.messenger.buddylist.maxlength");
            this._maxBuddyListLength = Configuration.getNumericConfigurationValue("users.messenger.buddylist.maxlength_extended");
            if (this._maxBuddyListLength == 0)
            {
                this._maxBuddyListLength = 200;
            }
            if (this._maxBuddyListLength_Extended < this._maxBuddyListLength)
            {
                this._maxBuddyListLength_Extended = 600;
            }

            int maxSyncMessages = Configuration.getNumericConfigurationValue("users.messenger.postmaster.maxsyncmessages");

            this._Postmaster = new messengerPostmaster(maxSyncMessages);
        }
コード例 #2
0
ファイル: messengerManager.cs プロジェクト: habb0/Woodpecker
        /// <summary>
        /// Sets the configuration values for the messenger.
        /// </summary>
        public void setConfiguration()
        {
            this._maxBuddyListLength = Configuration.getNumericConfigurationValue("users.messenger.buddylist.maxlength");
            this._maxBuddyListLength = Configuration.getNumericConfigurationValue("users.messenger.buddylist.maxlength_extended");
            if (this._maxBuddyListLength == 0)
                this._maxBuddyListLength = 200;
            if (this._maxBuddyListLength_Extended < this._maxBuddyListLength)
                this._maxBuddyListLength_Extended = 600;

            int maxSyncMessages = Configuration.getNumericConfigurationValue("users.messenger.postmaster.maxsyncmessages");
            this._Postmaster = new messengerPostmaster(maxSyncMessages);
        }