diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index f6ada52c8..8bc2f8baa 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -114,6 +114,18 @@ char* userrec::GetFullHost() return result; } +char* userrec::MakeWildHost() +{ + static char nresult[MAXBUF]; + char* t = nresult; + *t++ = '*'; *t++ = '!'; + *t++ = '*'; *t++ = '@'; + for(char* n = dhost; *n; n++) + *t++ = *n; + *t = 0; + return nresult; +} + int userrec::ReadData(void* buffer, size_t size) { if (this->fd > -1) |