diff options
| author | 2008-05-19 19:12:43 +0000 | |
|---|---|---|
| committer | 2008-05-19 19:12:43 +0000 | |
| commit | 12427e75fe175fe7a62f388281dd7ab5100c9dda (patch) | |
| tree | dde95798e65c424b74e0ce9682ebda4dd1dfa419 /src/modules/m_customtitle.cpp | |
| parent | Fix logic being backwards (so every user was always away and an oper, except ... (diff) | |
| download | inspircd++-12427e75fe175fe7a62f388281dd7ab5100c9dda.tar.gz inspircd++-12427e75fe175fe7a62f388281dd7ab5100c9dda.tar.bz2 inspircd++-12427e75fe175fe7a62f388281dd7ab5100c9dda.zip | |
Convert connection::host
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9768 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_customtitle.cpp')
| -rw-r--r-- | src/modules/m_customtitle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index 07055f40a..b7e67b507 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -51,7 +51,7 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist) char TheHost[MAXBUF]; char TheIP[MAXBUF]; - snprintf(TheHost,MAXBUF,"%s@%s",user->ident.c_str(), user->host); + snprintf(TheHost,MAXBUF,"%s@%s",user->ident.c_str(), user->host.c_str()); snprintf(TheIP, MAXBUF,"%s@%s",user->ident.c_str(), user->GetIPString()); ConfigReader Conf(ServerInstance); @@ -95,7 +95,7 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist) if (!ServerInstance->ULine(user->server)) // Ulines also fail TITLEs silently - ServerInstance->SNO->WriteToSnoMask('A', "Failed TITLE attempt by %s!%s@%s using login '%s'",user->nick.c_str(),user->ident.c_str(),user->host,parameters[0].c_str()); + ServerInstance->SNO->WriteToSnoMask('A', "Failed TITLE attempt by %s!%s@%s using login '%s'", user->nick.c_str(), user->ident.c_str(), user->host.c_str(), parameters[0].c_str()); user->WriteServ("NOTICE %s :Invalid title credentials",user->nick.c_str()); return CMD_SUCCESS; |
