Compare commits

..
3 Commits
Author SHA1 Message Date
Athena Funderburg 4bf878556b add OSCAR runner on port 9993, apparently the palm client uses that port 2026-11-05 03:30:30 +00:00
Athena Funderburg efd329652e fix leftover 2026-11-05 02:40:23 +00:00
Athena Funderburg a468b880e5 h 2026-11-05 01:33:23 +00:00
3 changed files with 6 additions and 5 deletions

No files matched your search

+4 -4
View File
@@ -1365,7 +1365,7 @@ class BackendSession(Session):
invite_msg = f"""\ invite_msg = f"""\
Subject: {sender_email} wants to talk to you using CrossTalk! Subject: {sender_email} wants to talk to you using CrossTalk!
To: {email} To: {email}
From: CrossTalk network administration <administration@ugnet.xyz> From: CrossTalk network administration <ct-noreply@hiden.cc>
This e-mail was sent to you because {sender_info} wants to chat with you using the CrossTalk service, and you don't have an account. This e-mail was sent to you because {sender_info} wants to chat with you using the CrossTalk service, and you don't have an account.
@@ -1388,7 +1388,7 @@ They've attached this message, as well:
with smtplib.SMTP(settings.SMTP_HOST, settings.SMTP_PORT) as server: with smtplib.SMTP(settings.SMTP_HOST, settings.SMTP_PORT) as server:
server.starttls() server.starttls()
server.login(settings.SMTP_USERNAME, settings.SMTP_PASSWORD) server.login(settings.SMTP_USERNAME, settings.SMTP_PASSWORD)
server.sendmail("administration@ugnet.xyz", email, invite_msg) server.sendmail("ct-noreply@hiden.cc", email, invite_msg)
else: else:
print(f"[Mailer] <Info> {sender_email} already has an account. Not sending an invitation e-mail.") print(f"[Mailer] <Info> {sender_email} already has an account. Not sending an invitation e-mail.")
@@ -1868,7 +1868,7 @@ class ChatSession(Session):
client = self.bs.client client = self.bs.client
backend = self.bs.backend backend = self.bs.backend
if client.program not in _UNRATED_PROGRAMS and not backend.util_message_allowed(self.user, data): return False if not backend.util_message_allowed(self.user, data): return False
if stats and data.type in _STATS_MESSAGE_TYPES: if stats and data.type in _STATS_MESSAGE_TYPES:
stats.on_message_sent(self.user, client) stats.on_message_sent(self.user, client)
@@ -1894,7 +1894,7 @@ class ChatSession(Session):
client = self.bs.client client = self.bs.client
backend = self.bs.backend backend = self.bs.backend
if client.program not in _UNRATED_PROGRAMS and not backend.util_message_allowed(self.user, data): return False if not backend.util_message_allowed(self.user, data): return False
if stats and data.type in _STATS_MESSAGE_TYPES: if stats and data.type in _STATS_MESSAGE_TYPES:
stats.on_message_sent(self.user, client) stats.on_message_sent(self.user, client)
+1
View File
@@ -12,6 +12,7 @@ from .proto.snac import SNACMessage
def register(loop: asyncio.AbstractEventLoop, backend: Backend) -> None: def register(loop: asyncio.AbstractEventLoop, backend: Backend) -> None:
backend.add_runner(ProtocolRunner('0.0.0.0', 5190, ListenerOSCAR, args=['OSCAR', backend, OSCARCtrl], service = 'OSCAR')) backend.add_runner(ProtocolRunner('0.0.0.0', 5190, ListenerOSCAR, args=['OSCAR', backend, OSCARCtrl], service = 'OSCAR'))
backend.add_runner(ProtocolRunner('0.0.0.0', 9993, ListenerOSCAR, args=['OSCAR', backend, OSCARCtrl], service = 'OSCAR'))
# once someone's avatar has been turned into a buddy icon, OSCAR clients watching them get an arrival that carries it # once someone's avatar has been turned into a buddy icon, OSCAR clients watching them get an arrival that carries it
from .proto.bart import set_refresh_hook from .proto.bart import set_refresh_hook
+1 -1
View File
@@ -54,7 +54,7 @@ SUSPENDED_ACCOUNT_DAYS = 30
# SMTP # SMTP
SMTP_HOST = 'mail-server-here' SMTP_HOST = 'mail-server-here'
SMTP_PORT = 587 SMTP_PORT = 587
SMTP_USERNAME = 'administration@ugnet.xyz' SMTP_USERNAME = 'ct-noreply@hiden.cc'
SMTP_PASSWORD = '' SMTP_PASSWORD = ''
# What frontends are enabled # What frontends are enabled