chatcommand_nop.cpp 361 B

1234567891011121314151617
  1. #include "chatcommand_nop.h"
  2. #include "websocket.h"
  3. #include "datastring.h"
  4. // nop()
  5. // Does nothing. This helps the connection stay open.
  6. bool chatcommand_nop::processmessage(char first_letter,message *received_message,chatclient *client)
  7. {
  8. if ((first_letter != 'n')
  9. || (received_message->actual_message!="nop()")) {
  10. return false;
  11. }
  12. return true;
  13. }