comparison src/tools/frontends/misc.py @ 712:f610864eb7a5

plugins (MUC, tools, games): generalize the generation of a unique room name when joining a MUC and no room is specified: - method to get the MUC service moved to plugin_xep_0045 - joinMUC returns the muc name (given by user or generated) - getUniqueName can receive a specified service in argument
author souliane <souliane@mailoo.org>
date Sun, 17 Nov 2013 16:59:12 +0100
parents 903c4749de15
children
comparison
equal deleted inserted replaced
711:c9792d0be499 712:f610864eb7a5
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU Affero General Public License for more details. 15 # GNU Affero General Public License for more details.
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20
21 # Default value for the "New discussion room" user input
22 DEFAULT_MUC = 'sat@chat.jabberfr.org'
19 23
20 24
21 class InputHistory(object): 25 class InputHistory(object):
22 26
23 def _updateInputHistory(self, text=None, step=None, callback=None, mode=""): 27 def _updateInputHistory(self, text=None, step=None, callback=None, mode=""):