* Moved to the new string tokenizer API
[citadel.git] / webcit / who.c
index 18d1f0844ae063c0b5cf5fe108d35780d6948c6d..c3bb03f868d59888bc5057be0143ce7d04da3372 100644 (file)
@@ -84,11 +84,11 @@ void whobbs(void)
        if (buf[0] == '1') {
                while (serv_gets(buf), strcmp(buf, "000")) {
                        sess = extract_int(buf, 0);
-                       extract(user, buf, 1);
-                       extract(room, buf, 2);
-                       extract(host, buf, 3);
-                       extract(realroom, buf, 9);
-                       extract(realhost, buf, 10);
+                       extract_token(user, buf, 1, '|', sizeof user);
+                       extract_token(room, buf, 2, '|', sizeof room);
+                       extract_token(host, buf, 3, '|', sizeof host);
+                       extract_token(realroom, buf, 9, '|', sizeof realroom);
+                       extract_token(realhost, buf, 10, '|', sizeof realhost);
                        last_activity = extract_long(buf, 5);
 
                        bg = 1 - bg;