(irc) Own setting of room subject

This commit is contained in:
Jaidyn Ann 2021-08-18 12:58:52 -05:00
parent 2645a58955
commit 188b70d498

View File

@ -349,6 +349,17 @@ IrcProtocol::Process(BMessage* msg)
_SendMsg(&info); _SendMsg(&info);
break; break;
} }
case IM_SET_ROOM_SUBJECT:
{
BString chat_id;
BString body = msg->FindString("subject");
if (msg->FindString("chat_id", &chat_id) == B_OK) {
BString cmd("TOPIC ");
cmd << chat_id << " :" << body;
_SendIrc(cmd);
}
break;
}
default: default:
std::cout << "Unhandled message for IRC:\n"; std::cout << "Unhandled message for IRC:\n";
msg->PrintToStream(); msg->PrintToStream();