mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Fix hook finding code and error reporting
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11813 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
611eda9412
commit
5815ca219e
@ -53,9 +53,8 @@ void ServernameResolver::OnLookupComplete(const std::string &result, unsigned in
|
||||
else
|
||||
{
|
||||
/* Something barfed, show the opers */
|
||||
ServerInstance->SNO->WriteToSnoMask('l', "CONNECT: Error connecting \002%s\002: %s.",MyLink->Name.c_str(),strerror(errno));
|
||||
ServerInstance->SNO->WriteToSnoMask('l', "CONNECT: Error connecting \002%s\002: %s.",MyLink->Name.c_str(), newsocket->error.c_str());
|
||||
ServerInstance->GlobalCulls.AddItem(newsocket);
|
||||
Utils->Creator->ConnectServer(myautoconnect, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ TreeSocket::TreeSocket(SpanningTreeUtilities* Util, const std::string& shost, in
|
||||
std::string name = (**i).ModuleSourceFile;
|
||||
int a = name.rfind('_');
|
||||
int b = name.rfind('.');
|
||||
name = name.substr(a, b-a-1);
|
||||
name = name.substr(a+1, b-a-1);
|
||||
if (name == hook)
|
||||
{
|
||||
AddIOHook(*i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user