summaryrefslogtreecommitdiff
path: root/src/tools/db-upgrade.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-27 23:02:20 -0400
committerAdam <Adam@anope.org>2010-10-27 23:02:20 -0400
commit180aa6b67b45bb92b1403b58a1b50d92f1eea4ea (patch)
treeb57f7e7bf9ffec261d4dedd433d774c59869ae9a /src/tools/db-upgrade.cpp
parenta26f119bc8666642a54564763626e52e5c72b030 (diff)
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.
Diffstat (limited to 'src/tools/db-upgrade.cpp')
-rw-r--r--src/tools/db-upgrade.cpp6
1 files changed, 6 insertions, 0 deletions
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())