Permalink
Browse files

Allow use of absolute paths with m_nationalchars

  • Loading branch information...
1 parent dd2bc14 commit 84ef4b82c2ab6b71ee77b57d7666f90da7e2856f Jackmcbarn committed Jul 19, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/modules/m_nationalchars.cpp
@@ -249,7 +249,8 @@ class ModuleNationalChars : public Module
ConfigTag* tag = ServerInstance->Config->GetTag("nationalchars");
charset = tag->getString("file");
casemapping = tag->getString("casemapping", charset);
- charset.insert(0, "../locales/");
+ if(charset[0] != '/')
+ charset.insert(0, "../locales/");
unsigned char * tables[8] = { m_additional, m_additionalMB, m_additionalUp, m_lower, m_upper, m_additionalUtf8, m_additionalUtf8range, m_additionalUtf8interval };
loadtables(charset, tables, 8, 5);
forcequit = tag->getBool("forcequit");

0 comments on commit 84ef4b8

Please sign in to comment.