summaryrefslogtreecommitdiff
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-12-04 11:51:12 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-12-04 11:51:12 +0000
commitda183c9107b5fccf20ef91232f44fc453b2b673a (patch)
tree3ef8413786f84d97c6b51540716a9ea61a2cd228
parente93a95d876fa598a92311bcae5fef9bff27f24cc (diff)
Applied uid fix provided by trystan (delayed in commiting as svn was playing up)
git-svn-id: svn://svn.anope.org/anope/trunk@942 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@673 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes3
-rw-r--r--src/users.c8
2 files changed, 8 insertions, 3 deletions
diff --git a/Changes b/Changes
index 08ab2d640..515d2a4e4 100644
--- a/Changes
+++ b/Changes
@@ -8,6 +8,9 @@ Provided by Anope Dev. <dev@anope.org> - 2005
11/01 F /os reload - BSFantasyChar was not sstrduped if not defined. [ #00]
10/30 F Updated docs/FAQ. [ #00]
+Provided by Trystan <trystan@nomadirc.net> - 2005
+11/19 F find_byuid for ircds which didnt give us a uid. [ #00]
+
Anope Version 1.7.12
--------------------
Provided by Anope Dev. <dev@anope.org> - 2005
diff --git a/src/users.c b/src/users.c
index e3684a6b6..539de2089 100644
--- a/src/users.c
+++ b/src/users.c
@@ -385,9 +385,11 @@ User *find_byuid(const char *uid)
u = first_uid();
while (u) {
next = next_uid();
- if (!stricmp(uid, u->uid)) {
- return u;
- }
+ if(u->uid) {
+ if (!stricmp(uid, u->uid)) {
+ return u;
+ }
+ }
u = next;
}
return NULL;