summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 20:32:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-22 20:32:19 +0000
commit69dee41a1b0a88d8170b8665eb2979915b022aad (patch)
tree4e5664ff43eec1701a7d576cf2a676d630f4b021 /src/users.cpp
parent2f0b2d4656eb1e0a5cfbda54631ebecbb16cfe4d (diff)
Added MakeWildHost to userrec (*!*@dhost)
Added ban stuff to messageflood git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2836 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp12
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)