At 01:39 AM 6/4/97 -0400, you wrote: >Some have seen the do_site code at the circle ftp site but there's >just one problem with it, most players use dynamic ip address and if >I try to look the real hostname (negia.net instead of ppp3.negia.net) >it doesn't find anything. I've not had much dealing with this sort of >coding and therefor have no idea how I could fix that. I tried checking >the ban code but its all a bunch of pointers from one function to >another >and by the time I got to where the code really is I was completely lost. >If anyone has a "improved" version of the code please tell me. Rather than use the do_site snippet, I just changed the way do_last works in eQuoria. If your argument to last includes a period, rather than doing a search on a str_cmp() match for the name, I do a search for a str_str() match on the ip address field. This way, I could type "last 207.207.207", for example, and see everyone that has used that class C address (I don't do name resolution) as their last login. The same would work with name resolution (and I used str_str() to remove the case sensitivity from strstr(), but I don't recall if that function already existed in stock code or if I had to write it. +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST