From 180aa6b67b45bb92b1403b58a1b50d92f1eea4ea Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 27 Oct 2010 23:02:20 -0400 Subject: Removed memo number from databases. Since we already have db-upgrade we might as well make that update memos too. Users using the top of git will need to run sed -i 's/MD MI [0-9]* /MD MI /' anope.db on their database. --- src/tools/db-upgrade.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tools/db-upgrade.cpp') diff --git a/src/tools/db-upgrade.cpp b/src/tools/db-upgrade.cpp index 599441a6a..d5973f4e6 100644 --- a/src/tools/db-upgrade.cpp +++ b/src/tools/db-upgrade.cpp @@ -260,6 +260,12 @@ int main(int argc, char *argv[]) line += parts[part]; } } + else if (line.substr(0, 5) == "MD MI") + { + while (isdigit(line[6])) + line.erase(line.begin() + 6); + line.erase(line.begin() + 6); + } out << line << std::endl; if (!lang.empty()) -- cgit