diff options
| author | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-09 06:54:11 +0000 |
|---|---|---|
| committer | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-09 06:54:11 +0000 |
| commit | a4b015b39d0e232121e060466a979277f0f28ce2 (patch) | |
| tree | 1b4c53b24865ac9bcd64ccd64d82ba47ff611e86 /src/core | |
| parent | 0761d4f74bc47191e9dde4591cc3a8a46878b4d0 (diff) | |
fixed a crashbug in os_ignore on db saving and cleaned up the db code in hs_request
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2739 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/os_ignore.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/os_ignore.c b/src/core/os_ignore.c index e7bb27a52..1db367d9d 100644 --- a/src/core/os_ignore.c +++ b/src/core/os_ignore.c @@ -195,10 +195,9 @@ class OSIgnore : public Module } else { - std::string buf = "OS IGNORE "; - buf += ign->mask; - buf += " " + ign->time; - Write(buf); + std::stringstream buf; + buf << "OS IGNORE " << ign->mask << " " << ign->time; + Write(buf.str()); } } } |
