|
@@ -30,8 +30,11 @@ bases = {
|
|
|
"FSXNET-General": "msgs/fsx_gen",
|
|
|
"FSXNET-BBS": "msgs/fsx_bbs",
|
|
|
"FSXNET-BOT": "msgs/fsx_bot",
|
|
|
+ "FSXNET-Encryption": "msgs/fsx_cry",
|
|
|
+ "FSXNET-Ham Radio": "msgs/fsx_ham",
|
|
|
"FSXNET-Magicka": "msgs/fsx_mag",
|
|
|
- "HappyNet-General": "msgs/hpy_gen",
|
|
|
+ "FSXNET-Mystic": "msgs/fsx_mys",
|
|
|
+ # "HappyNet-General": "msgs/hpy_gen",
|
|
|
}
|
|
|
|
|
|
# bases = {"FSX_BOT": "fsx_bot"}
|
|
@@ -152,7 +155,7 @@ def display_message(area, msgno):
|
|
|
"missing-area.html", base_path=base_path, title="Missing Area"
|
|
|
)
|
|
|
|
|
|
- # message = jammin.read_message(bases[area], msgno)
|
|
|
+# message = jammin.read_message(bases[area], msgno)
|
|
|
message = get_message(bases[area], msgno)
|
|
|
|
|
|
if not message:
|
|
@@ -163,6 +166,15 @@ def display_message(area, msgno):
|
|
|
title="Missing Message",
|
|
|
)
|
|
|
|
|
|
+ messages = get_messages(bases[area])
|
|
|
+ total = len(messages)
|
|
|
+ prevmsg = None
|
|
|
+ nextmsg = None
|
|
|
+ if (msgno > 1):
|
|
|
+ prevmsg = msgno - 1
|
|
|
+ if (msgno < total):
|
|
|
+ nextmsg = msgno + 1
|
|
|
+
|
|
|
if "text" in message:
|
|
|
if "\x1b" in message["text"]:
|
|
|
# Ok, the message contains ANSI CODES -- Convert
|
|
@@ -178,6 +190,8 @@ def display_message(area, msgno):
|
|
|
message=message,
|
|
|
area=area,
|
|
|
msgnumber=msgno,
|
|
|
+ prevmsg=prevmsg,
|
|
|
+ nextmsg=nextmsg,
|
|
|
base_path=base_path,
|
|
|
title="Message {0}".format(msgno),
|
|
|
)
|