Author: Ghostwolf <foxxe@wtfs.net>
authorJoseph Bongaarts <foxxe@wtfs.net>
Mon, 25 Feb 2002 07:39:33 +0000 (07:39 +0000)
committerJoseph Bongaarts <foxxe@wtfs.net>
Mon, 25 Feb 2002 07:39:33 +0000 (07:39 +0000)
Log message:
Last round of fixes for map changes.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@658 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ircd/map.c

index 21b0d862cf197c70a4089941670c65182e65e80e..b931ff78133e49d1651fafc37fe734a2bda786a5 100644 (file)
@@ -70,9 +70,9 @@ static void map_add(struct Client *server)
   map->next = MapList;
 
   if(MapList)
-    MapList->prev = new;
+    MapList->prev = map;
   
-  MapList = new;
+  MapList = map;
 }
 
 /* Remove a server from the map list */
@@ -127,7 +127,7 @@ void map_update(struct Client *cptr)
 
   /* If we haven't seen it before, add it to the list. */
   if(!map)
-    map_add(cli_name(cptr));
+    map_add(cptr);
 }
 
 void map_dump_head_in_sand(struct Client *cptr)