Introduce the realname_from_jid option
When set to true, the realname and username are extracted (by default) from the user’s JID fix #3136
This commit is contained in:
@@ -24,12 +24,14 @@ using namespace std::string_literals;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
|
||||
IrcClient::IrcClient(std::shared_ptr<Poller> poller, const std::string& hostname, const std::string& username, Bridge* bridge):
|
||||
IrcClient::IrcClient(std::shared_ptr<Poller> poller, const std::string& hostname,
|
||||
const std::string& nickname, const std::string& username,
|
||||
const std::string& realname, Bridge* bridge):
|
||||
TCPSocketHandler(poller),
|
||||
hostname(hostname),
|
||||
username(username),
|
||||
realname(username),
|
||||
current_nick(username),
|
||||
realname(realname),
|
||||
current_nick(nickname),
|
||||
bridge(bridge),
|
||||
welcomed(false),
|
||||
chanmodes({"", "", "", ""}),
|
||||
|
||||
@@ -25,7 +25,9 @@ class Bridge;
|
||||
class IrcClient: public TCPSocketHandler
|
||||
{
|
||||
public:
|
||||
explicit IrcClient(std::shared_ptr<Poller> poller, const std::string& hostname, const std::string& username, Bridge* bridge);
|
||||
explicit IrcClient(std::shared_ptr<Poller> poller, const std::string& hostname,
|
||||
const std::string& nickname, const std::string& username,
|
||||
const std::string& realname, Bridge* bridge);
|
||||
~IrcClient();
|
||||
/**
|
||||
* Connect to the IRC server
|
||||
|
||||
Reference in New Issue
Block a user