mirror of
https://github.com/anope/anope.git
synced 2026-06-27 17:06:39 +02:00
Don't enforce session limit on clients with no IP on Unreal, fix typo in /cs down syntax, fix os_session messages to reference ip
This commit is contained in:
@@ -778,17 +778,20 @@ struct IRCDMessageNick : IRCDMessage
|
||||
{
|
||||
if (params.size() == 11)
|
||||
{
|
||||
Anope::string decoded_ip;
|
||||
Anope::B64Decode(params[9], decoded_ip);
|
||||
|
||||
Anope::string ip;
|
||||
try
|
||||
if (params[9] != "*")
|
||||
{
|
||||
sockaddrs ip_addr;
|
||||
ip_addr.ntop(params[9].length() == 8 ? AF_INET : AF_INET6, decoded_ip.c_str());
|
||||
ip = ip_addr.addr();
|
||||
Anope::string decoded_ip;
|
||||
Anope::B64Decode(params[9], decoded_ip);
|
||||
|
||||
try
|
||||
{
|
||||
sockaddrs ip_addr;
|
||||
ip_addr.ntop(params[9].length() == 8 ? AF_INET : AF_INET6, decoded_ip.c_str());
|
||||
ip = ip_addr.addr();
|
||||
}
|
||||
catch (const SocketException &ex) { }
|
||||
}
|
||||
catch (const SocketException &ex) { }
|
||||
|
||||
Anope::string vhost = params[8];
|
||||
if (vhost.equals_cs("*"))
|
||||
|
||||
Reference in New Issue
Block a user