1
0
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:
Adam
2013-02-25 00:26:49 -05:00
parent 5d4db2b854
commit 8561941e22
5 changed files with 22 additions and 13 deletions
+11 -8
View File
@@ -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("*"))