1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-27 01:56:37 +02:00

- Moved sendto_connectnotice, and thus the call to HOOKTYPE_LOCAL_CONNECT,

so it gets called after the broadcast of NICK to other servers.
This commit is contained in:
Bram Matthys
2012-05-01 12:10:14 +02:00
parent aa206f667f
commit 3f3b8975e0
2 changed files with 9 additions and 5 deletions
+2
View File
@@ -2428,3 +2428,5 @@
can be used to request passive notifications for accountname changes.
- If set::options::dont-resolve is enabled, then use only the IP information
from a WEBIRC message, reported by Ismat (#4103).
- Moved sendto_connectnotice, and thus the call to HOOKTYPE_LOCAL_CONNECT,
so it gets called after the broadcast of NICK to other servers.
+7 -5
View File
@@ -1101,7 +1101,6 @@ int _register_user(aClient *cptr, aClient *sptr, char *nick, char *username, cha
sptr->name, olduser, userbad, stripuser);
#endif
nextping = TStime();
sendto_connectnotice(nick, user, sptr, 0, NULL);
if (IsSecure(sptr))
sptr->umodes |= UMODE_SECURE;
}
@@ -1175,13 +1174,16 @@ int _register_user(aClient *cptr, aClient *sptr, char *nick, char *username, cha
(!buf || *buf == '\0' ? "+" : buf),
sptr->umodes & UMODE_SETHOST ? sptr->user->virthost : NULL);
/* Send password from sptr->passwd to NickServ for identification,
* if passwd given and if NickServ is online.
* - by taz, modified by Wizzu
*/
if (MyConnect(sptr))
{
char userhost[USERLEN + HOSTLEN + 6];
sendto_connectnotice(nick, user, sptr, 0, NULL); /* moved down, for modules. */
/* Send password from sptr->passwd to NickServ for identification,
* if passwd given and if NickServ is online.
* - by taz, modified by Wizzu
*/
if (sptr->passwd && (nsptr = find_person(NickServ, NULL)))
{
int do_identify = 1;