mirror of
https://github.com/jlu5/PyLink.git
synced 2025-10-14 15:37:31 +02:00
parent
638b9dc84a
commit
e7e2f2c98e
@ -20,7 +20,7 @@ from collections import defaultdict, deque
|
|||||||
try:
|
try:
|
||||||
import ircmatch
|
import ircmatch
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError("Please install the ircmatch library and try again.")
|
raise ImportError("PyLink requires ircmatch to function; please install it and try again.")
|
||||||
|
|
||||||
from . import world, utils, structures, __version__
|
from . import world, utils, structures, __version__
|
||||||
from .log import *
|
from .log import *
|
||||||
@ -541,7 +541,7 @@ class Irc():
|
|||||||
# This is a stub to alias error to reply
|
# This is a stub to alias error to reply
|
||||||
self.reply("Error: %s" % text, notice=notice, source=source, private=private,
|
self.reply("Error: %s" % text, notice=notice, source=source, private=private,
|
||||||
force_privmsg_in_private=force_privmsg_in_private, loopback=loopback)
|
force_privmsg_in_private=force_privmsg_in_private, loopback=loopback)
|
||||||
|
|
||||||
def toLower(self, text):
|
def toLower(self, text):
|
||||||
"""Returns a lowercase representation of text based on the IRC object's
|
"""Returns a lowercase representation of text based on the IRC object's
|
||||||
casemapping (rfc1459 or ascii)."""
|
casemapping (rfc1459 or ascii)."""
|
||||||
|
2
conf.py
2
conf.py
@ -8,7 +8,7 @@ It provides simple checks for validating and loading YAML-format configurations
|
|||||||
try:
|
try:
|
||||||
import yaml
|
import yaml
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError("Please install PyYAML and try again.")
|
raise ImportError("PyLink requires PyYAML to function; please install it and try again.")
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os.path
|
import os.path
|
||||||
|
@ -4,7 +4,11 @@ login.py - Implement core login abstraction.
|
|||||||
|
|
||||||
from pylinkirc import conf, utils, world
|
from pylinkirc import conf, utils, world
|
||||||
from pylinkirc.log import log
|
from pylinkirc.log import log
|
||||||
from passlib.context import CryptContext
|
|
||||||
|
try:
|
||||||
|
from passlib.context import CryptContext
|
||||||
|
except ImportError:
|
||||||
|
raise ImportError("PyLink requires passlib to function; please install it and try again.")
|
||||||
|
|
||||||
pwd_context = CryptContext(["sha512_crypt", "sha256_crypt"],
|
pwd_context = CryptContext(["sha512_crypt", "sha256_crypt"],
|
||||||
all__vary_rounds=0.1,
|
all__vary_rounds=0.1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user