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

checking for ssl users when ajoining ssl only channels on inspircd, fixes 1466

This commit is contained in:
DukePyrolator
2013-06-18 07:35:47 +02:00
parent a93b315bd3
commit fc527b464a
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -947,7 +947,8 @@ struct IRCDMessageMetadata : IRCDMessage
User *u = User::Find(params[0]);
if (!u)
return;
std::string data = params[2].c_str();
u->Extend("SSL");
Anope::string data = params[2].c_str();
size_t pos1 = data.find(' ') + 1;
size_t pos2 = data.find(' ', pos1);
if ((pos2 - pos1) >= 32) // inspircd supports md5 and sha1 fingerprint hashes -> size 32 or 40 bytes.