-/* Find a user record by nickname and return a pointer to it */
-
-userrec* InspIRCd::FindNick(const std::string &nick)
-{
- user_hash::iterator iter = clientlist->find(nick);
-
- if (iter == clientlist->end())
- /* Couldn't find it */
- return NULL;
-
- return iter->second;
-}
-
-userrec* InspIRCd::FindNick(const char* nick)
-{
- user_hash::iterator iter = clientlist->find(nick);
-
- if (iter == clientlist->end())
- return NULL;
-
- return iter->second;
-}
-
-/* find a channel record by channel name and return a pointer to it */
-
-chanrec* InspIRCd::FindChan(const char* chan)
-{
- chan_hash::iterator iter = chanlist->find(chan);
-
- if (iter == chanlist->end())
- /* Couldn't find it */
- return NULL;
-
- return iter->second;
-}
-
-chanrec* InspIRCd::FindChan(const std::string &chan)
-{
- chan_hash::iterator iter = chanlist->find(chan);
-
- if (iter == chanlist->end())
- /* Couldn't find it */
- return NULL;
-
- return iter->second;
-}
-
-/*
- * sends out an error notice to all connected clients (not to be used
- * lightly!)
- */
-void InspIRCd::SendError(const std::string &s)
-{
- for (std::vector<userrec*>::const_iterator i = this->local_users.begin(); i != this->local_users.end(); i++)
- {
- if ((*i)->registered == REG_ALL)
- {
- (*i)->WriteServ("NOTICE %s :%s",(*i)->nick,s.c_str());
- }
- else
+ // Replace double slashes with a single slash before we return
+ std::string::size_type pos = ret.find("\\\\");
+ while(pos != std::string::npos)