mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
don't pm people ignoring you
This commit is contained in:
parent
0afdbc7222
commit
1bee788210
9 changed files with 36 additions and 5 deletions
|
|
@ -45,10 +45,18 @@ void TabMessage::sendMessage()
|
|||
if (sayEdit->text().isEmpty() || !userOnline)
|
||||
return;
|
||||
|
||||
client->sendCommand(new Command_Message(userName, sayEdit->text()));
|
||||
Command_Message *cmd = new Command_Message(userName, sayEdit->text());
|
||||
connect(cmd, SIGNAL(finished(ProtocolResponse *)), this, SLOT(messageSent(ProtocolResponse *)));
|
||||
client->sendCommand(cmd);
|
||||
sayEdit->clear();
|
||||
}
|
||||
|
||||
void TabMessage::messageSent(ProtocolResponse *response)
|
||||
{
|
||||
if (response->getResponseCode() == RespInIgnoreList)
|
||||
chatView->appendMessage(QString(), tr("This user is ignoring you."));
|
||||
}
|
||||
|
||||
void TabMessage::actLeave()
|
||||
{
|
||||
deleteLater();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue