diff options
| author | 2006-01-27 15:26:59 +0000 | |
|---|---|---|
| committer | 2006-01-27 15:26:59 +0000 | |
| commit | 653638c68684ec035fd58bc2d0d91c9bf9aa2ab9 (patch) | |
| tree | 364fd9cce4e2e8d6e86ddc3f1267b98dbed51854 /src/modules/m_userip.cpp | |
| parent | Moved to extra/ - not all systems have stdint.h yet? (diff) | |
Improved IP handling. Now uses in_addr to store client ip, not char[16]!
Added global and local session limits
All of this needs TESTING.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2934 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_userip.cpp')
| -rw-r--r-- | src/modules/m_userip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp index fe37ebc7f..48befe370 100644 --- a/src/modules/m_userip.cpp +++ b/src/modules/m_userip.cpp @@ -44,7 +44,7 @@ class cmd_userip : public command_t userrec *u = Find(parameters[i]); if (u) { - snprintf(junk,MAXBUF,"%s%s=+%s@%s ",u->nick,strchr(u->modes,'o') ? "*" : "",u->ident,u->ip); + snprintf(junk,MAXBUF,"%s%s=+%s@%s ",u->nick,strchr(u->modes,'o') ? "*" : "",u->ident,(char*)inet_ntoa(u->ip4)); strlcat(Return,junk,MAXBUF); } } |
