Template_IPLog Class Reference
IP Logging class.
More...
List of all members.
|
Public Member Functions |
void | AddIP (String NewIP, String NewName) |
| Add an IP.
|
String | GetListedEntries (String EntrySearch) |
| Get IP entries.
|
Detailed Description
A server-side class used to log player IPs.
Member Function Documentation
void AddIP |
( |
String |
NewIP, |
|
|
String |
NewName | |
|
) |
| | |
Add a new IP and name to the IP log. If the IP is found already, the name will be added onto the other known names for this IP.
- Parameters:
-
| NewIP | The IP |
| NewName | The name for the given IP |
String GetListedEntries |
( |
String |
EntrySearch |
) |
|
Search the log for entries either by IP or name.
- Parameters:
-
| EntrySearch | The name or IP of what is being searched for |
- Returns:
- A single string with all matches, in this format:
(chr(13)) (ip) (name1) (name2) (name3) ... (name n) (chr(13)) (ip) (name1) (name2) (name3) ... (namen)
In other words, each matched entry will be separated by the ascii character 13, and each entry will be the matched IP followed by all of the names recorded for that particular IP.