Add in a few extra plugins
This commit is contained in:
24
plugins/IrcClientPlugin/joinmessagehandler.cpp
Normal file
24
plugins/IrcClientPlugin/joinmessagehandler.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "joinmessagehandler.h"
|
||||
|
||||
joinmessagehandler::joinmessagehandler()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void joinmessagehandler::handle(Client *client, const Message &message)
|
||||
{
|
||||
|
||||
QString target = message.getTarget();
|
||||
QString text = message.getArguments().join(" ");
|
||||
Hostmask from = Hostmask::parse(message.getPrefix());
|
||||
|
||||
|
||||
client->didReceiveJoinMsg(from, target, text);
|
||||
|
||||
// for (QString data : message.getArguments()) // iterate over array fibonacci
|
||||
// {
|
||||
// qDebug() << "GOT:" << data;
|
||||
// }
|
||||
//QString pongMessage = message.getTarget();
|
||||
//client->sendPong(pongMessage);
|
||||
}
|
||||
Reference in New Issue
Block a user