X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree.cpp;h=7a71df21ae224529c3c63771d90d7ad07729f947;hb=344624dd2a81691df140c9d118901804ba766590;hp=fe316977b41e79e79585005f0a32b313ed1b8139;hpb=fb139a504c35d26cd3b360874263bb32f917380c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index fe316977b..7a71df21a 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -610,6 +610,7 @@ class TreeSocket : public InspSocket { if (x->Name == this->myhost) { + this->SendCapabilities(); if (x->EncryptionKey != "") { if (!(x->EncryptionKey.length() == 16 || x->EncryptionKey.length() == 24 || x->EncryptionKey.length() == 32)) @@ -622,7 +623,6 @@ class TreeSocket : public InspSocket this->InitAES(x->EncryptionKey,x->Name); } } - this->SendCapabilities(); /* found who we're supposed to be connecting to, send the neccessary gubbins. */ this->WriteLine("SERVER "+Srv->GetServerName()+" "+x->SendPass+" 0 :"+Srv->GetServerDescription()); return true;