The complete source code of IdealIRC
http://www.idealirc.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
653 B
25 lines
653 B
/*
|
|
* IdealIRC - Internet Relay Chat client
|
|
* Copyright (c) 2023 Tom-Andre Barstad.
|
|
* This software is licensed under the Software Attribution License.
|
|
* See LICENSE for more information.
|
|
*/
|
|
|
|
#include "../IRCBase.h"
|
|
#include "../IRCBasePriv.h"
|
|
|
|
void IRCBasePriv::numRplEndOfMotd(const IRCMessage& ircmessage)
|
|
{
|
|
if (isOnline)
|
|
return;
|
|
|
|
nickname = ircmessage[0];
|
|
isOnline = true;
|
|
if (keepaliveFreq > std::chrono::seconds(0))
|
|
startKeepaliveTimer();
|
|
|
|
// Emplace ourselves in the all-members list.
|
|
allMembers.emplace_back(std::make_shared<IRCMember>(IRCPrefix::fromNickname(nickname)));
|
|
|
|
super.onRegistered();
|
|
} |