summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-05-05 20:53:54 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-05-05 20:53:54 +0000
commitac4c6f37b92f106e3b79cd3a9b6d4589392fbd77 (patch)
tree95b555b9799e30cfe2b24dc217d6161327e22e1d /src
parentf7dd15d127f1ed380563c2e98fdc5c314ed623e0 (diff)
BUILD : 1.7.9 (778) BUGS : N/A NOTES : inspircd fixs, debug output fix
git-svn-id: svn://svn.anope.org/anope/trunk@778 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@538 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/protocol/inspircd.c13
-rw-r--r--src/users.c3
2 files changed, 9 insertions, 7 deletions
diff --git a/src/protocol/inspircd.c b/src/protocol/inspircd.c
index 073792e5e..7e6539fc4 100644
--- a/src/protocol/inspircd.c
+++ b/src/protocol/inspircd.c
@@ -1104,7 +1104,7 @@ int anope_event_setname(char *source, int ac, char **av)
u = finduser(av[0]);
if (!u) {
if (debug) {
- alog("debug: SETNAME for nonexistent user %s", source);
+ alog("user: SETNAME for nonexistent user %s", source);
}
return MOD_CONT;
}
@@ -1122,7 +1122,7 @@ int anope_event_chgname(char *source, int ac, char **av)
u = finduser(av[0]);
if (!u) {
if (debug) {
- alog("debug: CHGNAME for nonexistent user %s", av[0]);
+ alog("user: CHGNAME for nonexistent user %s", av[0]);
}
return MOD_CONT;
}
@@ -1150,7 +1150,7 @@ int anope_event_sethost(char *source, int ac, char **av)
u = finduser(av[0]);
if (!u) {
if (debug) {
- alog("debug: SETHOST for nonexistent user %s", source);
+ alog("user: SETHOST for nonexistent user %s", source);
}
return MOD_CONT;
}
@@ -1178,7 +1178,7 @@ int anope_event_nick(char *source, int ac, char **av)
// nick introductions (e.g. introductions for clients we already have). If this happens,
// we should ignore any that claim to be from us as these are just confirmations of the
// services "complement" - processing them will cause all kinds of session limit oddities.
- if ((strcmp(av[7], ServerName)) || (finduser(av[1]))) {
+ if ((strcmp(av[7], ServerName)) && (!finduser(av[1]))) {
inet_aton(av[6], &addy);
user = do_nick(source, av[1], av[4], av[2], uplink, av[8],
strtoul(av[0], NULL, 10), 0, htonl(*ad), av[3],
@@ -1201,7 +1201,7 @@ int anope_event_chghost(char *source, int ac, char **av)
u = finduser(av[0]);
if (!u) {
if (debug) {
- alog("debug: CHGHOST for nonexistent user %s", av[0]);
+ alog("user: CHGHOST for nonexistent user %s", av[0]);
}
return MOD_CONT;
}
@@ -1485,7 +1485,8 @@ int AnopeInit(int argc, char **argv)
{
moduleAddAuthor("Brain");
- moduleAddVersion("$Id$");
+ moduleAddVersion
+ ("$Id$");
moduleSetType(PROTOCOL);
pmodule_ircd_version("InspIRCd 1.0 Beta3");
diff --git a/src/users.c b/src/users.c
index b4f28fde8..7bf4fb35d 100644
--- a/src/users.c
+++ b/src/users.c
@@ -118,7 +118,8 @@ void update_host(User * user)
}
if (debug)
- alog("debug: %s changes its host to %s", user->nick, user->host);
+ alog("debug: %s changes its host to %s", user->nick,
+ common_get_vhost(user));
}