1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 09:13:12 +02:00

Move B64{Decode,Encode} to textproc and redesign their interface.

This commit is contained in:
Sadie Powell
2025-08-08 12:27:28 +01:00
parent e5c5689985
commit 70de2b7de2
9 changed files with 29 additions and 39 deletions
+2 -4
View File
@@ -1233,8 +1233,7 @@ struct IRCDMessageNick final
Anope::string ip;
if (params[9] != "*")
{
Anope::string decoded_ip;
Anope::B64Decode(params[9], decoded_ip);
auto decoded_ip = Anope::B64Decode(params[9]);
sockaddrs ip_addr;
ip_addr.ntop(params[9].length() == 8 ? AF_INET : AF_INET6, decoded_ip.c_str());
@@ -1646,8 +1645,7 @@ struct IRCDMessageUID final
if (ip != "*")
{
Anope::string decoded_ip;
Anope::B64Decode(ip, decoded_ip);
auto decoded_ip = Anope::B64Decode(ip);
sockaddrs ip_addr;
ip_addr.ntop(ip.length() == 8 ? AF_INET : AF_INET6, decoded_ip.c_str());