summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-05 02:20:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-05 02:20:21 +0300
commitaff4b3cf27d823696ffb0d34ed469a4a0adcd2a4 (patch)
tree73e88418ca5f6fd4eae6bde715e52b96cd8ce502 /src/commands.cpp
parent46106e962bee32271ee644224c5ac525eb32f888 (diff)
downloadManaVerse-aff4b3cf27d823696ffb0d34ed469a4a0adcd2a4.tar.gz
ManaVerse-aff4b3cf27d823696ffb0d34ed469a4a0adcd2a4.tar.bz2
ManaVerse-aff4b3cf27d823696ffb0d34ed469a4a0adcd2a4.tar.xz
ManaVerse-aff4b3cf27d823696ffb0d34ed469a4a0adcd2a4.zip
Add chat command to clean fonts cache.
New chat command: /cleanfonts
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 0850ba909..dce8c57e0 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -351,7 +351,15 @@ impHandler0(cleanGraphics)
while(resman->cleanOrphans(true));
if (debugChatTab)
- debugChatTab->chatLog("cache cleaned");
+ debugChatTab->chatLog(_("Cache cleaned"));
+}
+
+impHandler0(cleanFonts)
+{
+ if (gui)
+ gui->clearFonts();
+ if (debugChatTab)
+ debugChatTab->chatLog(_("Cache cleaned"));
}
impHandler(join)