~ubuntu-branches/ubuntu/oneiric/inspircd/oneiric-security

« back to all changes in this revision

Viewing changes to src/modules/m_swhois.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Darren Blaber
  • Date: 2008-04-21 12:51:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080421125101-m6lqhtn1wna8u2go
Tags: 1.1.19+dfsg-1
New upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
                        userrec* dest = (userrec*)target;
193
193
                        // if they dont already have an swhois field, accept the remote server's
194
194
                        std::string* text;
195
 
                        if (!dest->GetExt("swhois", text))
 
195
                        if (dest->GetExt("swhois", text))
196
196
                        {
197
 
                                std::string* text = new std::string(extdata);
198
 
                                dest->Extend("swhois",text);
 
197
                                dest->Shrink("swhois");
 
198
                                delete text;
199
199
                        }
 
200
 
 
201
                        text = new std::string(extdata);
 
202
                        dest->Extend("swhois",text);
200
203
                }
201
204
        }
202
205