Lines 1-14
Link Here
|
1 |
--- ./src/modules/m_nationalchars.cpp.orig 2010-07-05 11:21:26.000000000 +0300 |
|
|
2 |
+++ ./src/modules/m_nationalchars.cpp 2010-07-05 11:23:29.000000000 +0300 |
3 |
@@ -255,7 +255,10 @@ |
4 |
ConfigReader* conf = new ConfigReader(ServerInstance); |
5 |
charset = conf->ReadValue("nationalchars", "file", 0); |
6 |
casemapping = conf->ReadValue("nationalchars", "casemapping", charset, 0, false); |
7 |
- charset.insert(0, "../locales/"); |
8 |
+ if (charset[0] != '/') |
9 |
+ { |
10 |
+ charset.insert(0, "../share/inspircd/locales/"); |
11 |
+ } |
12 |
unsigned char * tables[8] = { m_additional, m_additionalMB, m_additionalUp, m_lower, m_upper, m_additionalUtf8, m_additionalUtf8range, m_additionalUtf8interval }; |
13 |
loadtables(charset, tables, 8, 5); |
14 |
forcequit = conf->ReadFlag("nationalchars", "forcequit", 0); |