mirror of
https://github.com/anope/anope.git
synced 2026-06-12 17:24:49 +02:00
Fix some places that weren't updated for the new nbsp character.
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ Anope Multi Language Support
|
||||
po files (especially on Windows).
|
||||
|
||||
There are several control characters within the messages. These are mostly IRC formatting codes (https://modern.ircdocs.horse/formatting)
|
||||
but 0x1A is special to Anope and is used to prevent the automatic linewrapper from breaking messages in the middle of
|
||||
but 0x1B is special to Anope and is used to prevent the automatic linewrapper from breaking messages in the middle of
|
||||
text that should not be split (e.g. commands). Your editor may not show these so be careful you don't delete them!
|
||||
|
||||
If you have finished a language file translation and you want others to use it, please file a pull request on GitHub
|
||||
|
||||
+2
-2
@@ -230,12 +230,12 @@ namespace Anope
|
||||
inline bool is_pos_number_only() const { return this->find_first_not_of("0123456789.") == npos; }
|
||||
|
||||
/**
|
||||
* In IRC messages we use a substitute (ASCII 0x1A) instead of a space
|
||||
* In IRC messages we use a substitute (ASCII 0x1B) instead of a space
|
||||
* (ASCII 0x20) so it doesn't get line wrapped when put into a message.
|
||||
* The line wrapper will convert this to a space before it is sent to
|
||||
* clients.
|
||||
*/
|
||||
inline Anope::string nobreak() const { return this->replace_all_cs("\x20", "\x1A"); }
|
||||
inline Anope::string nobreak() const { return this->replace_all_cs("\x20", "\x1B"); }
|
||||
|
||||
/**
|
||||
* Replace parts of the string.
|
||||
|
||||
Reference in New Issue
Block a user