Commit 18fc9035 authored by JC Brand's avatar JC Brand

Use addHelpMessages method

parent 0a0e4f2a
...@@ -398,7 +398,6 @@ ...@@ -398,7 +398,6 @@
return; return;
} }
} }
var message = $msg({from: converse.bare_jid, to: bare_jid, type: 'chat', id: timestamp}) var message = $msg({from: converse.bare_jid, to: bare_jid, type: 'chat', id: timestamp})
.c('body').t(text).up() .c('body').t(text).up()
.c('active', {'xmlns': 'http://jabber.org/protocol/chatstates'}); .c('active', {'xmlns': 'http://jabber.org/protocol/chatstates'});
...@@ -1068,17 +1067,15 @@ ...@@ -1068,17 +1067,15 @@
break; break;
case 'help': case 'help':
$chat_content = this.$el.find('.chat-content'); $chat_content = this.$el.find('.chat-content');
$chat_content.append( msgs = [
'<div class="chat-help"><strong>/help</strong>: Show this menu</div>' + '<strong>/help</strong>: Show this menu',
'<div class="chat-help"><strong>/clear</strong>: Write in the third person</div>' + '<strong>/me</strong>: Write in the third person',
'<div class="chat-help"><strong>/topic</strong>: Set chatroom topic</div>'); '<strong>/topic</strong>: Set chatroom topic',
/* TODO: '<strong>/kick</strong>: Kick user from chatroom',
$chat_content.append($('<div class="chat-help"><strong>/kick</strong>: Kick out user</div>')); '<strong>/ban</strong>: Ban user from chatroom',
$chat_content.append($('<div class="chat-help"><strong>/ban</strong>: Ban user</div>')); '<strong>/clear</strong>: Remove messages'
$chat_content.append($('<div class="chat-help"><strong>/op $user</strong>: Remove messages</div>')); ];
$chat_content.append($('<div class="chat-help"><strong>/deop $user</strong>: Remove messages</div>')); this.addHelpMessages(msgs);
*/
this.scrollDown();
break; break;
default: default:
this.last_msgid = converse.connection.muc.groupchat(this.model.get('jid'), body); this.last_msgid = converse.connection.muc.groupchat(this.model.get('jid'), body);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment