diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 23:16:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 23:16:25 +0000 |
commit | 7f86f53bbf30ec01985895566c51803fc63a995e (patch) | |
tree | f241b3537a04a72dfb66e78eaa457c06b1ad2e0d /src | |
parent | 7d617f48c46112fde73f1dd445030893b90a1efe (diff) |
Left nick out of the cidr/ip check in bans/join, would never match
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4758 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/channels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 1273ff07a..3671fdb6d 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -349,7 +349,7 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri MOD_RESULT = 0; FOREACH_RESULT(I_OnCheckBan,OnCheckBan(user, Ptr)); char mask[MAXBUF]; - sprintf(mask,"%s@%s",user->ident, user->GetIPString()); + sprintf(mask,"%s!%s@%s",user->nick, user->ident, user->GetIPString()); if (!MOD_RESULT) { for (BanList::iterator i = Ptr->bans.begin(); i != Ptr->bans.end(); i++) |