equal
deleted
inserted
replaced
355 { |
355 { |
356 if (lst[i] == mynick) |
356 if (lst[i] == mynick) |
357 { |
357 { |
358 netClientState = 3; |
358 netClientState = 3; |
359 emit EnteredGame(); |
359 emit EnteredGame(); |
|
360 emit roomMaster(isChief); |
360 if (isChief) |
361 if (isChief) |
361 ConfigAsked(); |
362 ConfigAsked(); |
362 } |
363 } |
363 emit nickAdded(lst[i]); |
364 emit nickAdded(lst[i]); |
364 emit chatStringFromNet(QString(tr("*** %1 joined")).arg(lst[i])); |
365 emit chatStringFromNet(QString(tr("*** %1 joined")).arg(lst[i])); |
732 return QString("* %1 %2").arg(nick).arg(msg.mid(4)); |
733 return QString("* %1 %2").arg(nick).arg(msg.mid(4)); |
733 else |
734 else |
734 return QString("%1: %2").arg(nick).arg(msg); |
735 return QString("%1: %2").arg(nick).arg(msg); |
735 } |
736 } |
736 |
737 |
|
738 void HWNewNet::banPlayer(const QString & nick) |
|
739 { |
|
740 RawSendNet(QString("BAN%1%2").arg(delimeter).arg(nick)); |
|
741 } |
|
742 |
737 void HWNewNet::kickPlayer(const QString & nick) |
743 void HWNewNet::kickPlayer(const QString & nick) |
738 { |
744 { |
739 RawSendNet(QString("KICK%1%2").arg(delimeter).arg(nick)); |
745 RawSendNet(QString("KICK%1%2").arg(delimeter).arg(nick)); |
740 } |
746 } |
741 |
747 |