mirror of https://github.com/calzoneman/sync.git
Force channel names to be lowercase
Since MySQL is case-insensitive, treating varying cases as unique names was a prroblem. Existing channels with uppercase names should not be affected as the database lookup finds a match without case sensitivity.
This commit is contained in:
parent
823ab91d04
commit
b7cdc0c056
|
@ -87,7 +87,7 @@ exports.loadChannel = function(chan) {
|
|||
return;
|
||||
}
|
||||
else if(rows[0].name != chan.name) {
|
||||
return rows[0].name;
|
||||
chan.name = rows[0].name;
|
||||
}
|
||||
chan.registered = true;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
const VERSION = "1.1.2";
|
||||
const VERSION = "1.1.3";
|
||||
|
||||
var fs = require("fs");
|
||||
var Logger = require("./logger.js");
|
||||
|
|
Loading…
Reference in New Issue