public void CommandMe(CommandModel command)
{
if (command.Data.Length <= 4) {
return;
}
string actionstring = command.Data.Substring(3);
// http://xmpp.org/extensions/xep-0245.html
// says we should append "/me " no matter what our command char is
_Say(command.Chat, "/me" + actionstring, true, false);
// groupchat echos messages anyway
if (command.Chat.ChatType == ChatType.Person) {
var builder = CreateMessageBuilder();
builder.AppendActionPrefix();
builder.AppendIdendityName(Me);
builder.AppendText(actionstring);
Session.AddMessageToChat(command.Chat, builder.ToMessage());
}
}