Hi all, I'm trying to improve the Invisibility plugin, and I'm mostly done, except one thing: I need to find out the online users after the client logs in. I figured that user state is checked with
[::abook::getVolatileData $user state] Now, if I register for the OnConnect event and do the above check after this signal, I get empty string (default) back, probably because the user data hasn't been downloaded yet. If I register for the contactlistLoaded event then the code isn't run at all. How can I find a solution to this? By the way, while i was trying to debug, I noticed that when the client logs in, dozens of times getVolatileData and get ContactData return the default values since the field names passed to them don't exist, i.e. in if { ![info exists user_data($field)] } { return $defaultval } the condition evaluates to true. So maybe some unnecessary calls can be eliminated from the code, Ilgar ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Amsn-devel mailing list Amsn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amsn-devel