Skip to content

Commit a11ff0d

Browse files
committed
v1.5.0
1 parent b224e18 commit a11ff0d

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

docs/todo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ the other lists are roughly sorted by importance (and additionally split in two
1010

1111
# features: whatever
1212

13-
* nick colours
1413
* rate limiting
1514
* modals with command feedback
1615
* filter bots somehow?
@@ -63,7 +62,7 @@ the other lists are roughly sorted by importance (and additionally split in two
6362
* pings are case-sensitive
6463
* can't message uppercase nicks
6564
* offer to skip wizard if IP has connected before
66-
* bell on by default, disable with /bn
65+
* bell on by default, disable with /b0
6766
* preview colours in text input
6867
* check if AYT can be used as ping/pong (not really)
6968
* can use crazy options where you expect a nope in return and then get a nope every time you ask
@@ -88,3 +87,4 @@ the other lists are roughly sorted by importance (and additionally split in two
8887

8988
* check pwd dir
9089
* check we're in $PATH
90+
* nick colours

r0c/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def optgen(ap, pwd):
7171
ac.add_argument("--hex-w", metavar="N", type=int, default=16, help="width of the hexdump, in bytes per line, mod-8")
7272
ac.add_argument("--dev", action="store_true", help="enable dangerous shortcuts (devmode)")
7373
ac.add_argument("--thr-mon", action="store_true", help="start monitoring threads on ctrl-c")
74+
if WINDOWS:
75+
ac.add_argument("--reuseaddr", action="store_true", help="allow rapid server restart (DANGER: lets you accidentally start multiple instances)")
7476
ac.add_argument("--linemode", action="store_true", help="force clients into linemode (to debug linemode UI)")
7577
ac.add_argument("--bench", action="store_true", help="dump statistics every 2 sec")
7678
# fmt: on

r0c/__version__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
VERSION = (1, 4, 2)
2-
BUILD_DT = (2023, 5, 19)
1+
VERSION = (1, 5, 0)
2+
BUILD_DT = (2023, 9, 18)
33

44
S_VERSION = u".".join(map(str, VERSION))
55
S_BUILD_DT = u"{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)

r0c/ivt100.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# coding: utf-8
22
from __future__ import print_function
3-
from .__init__ import EP, PY2, COLORS, IRONPY, TYPE_CHECKING, unicode
3+
from .__init__ import EP, PY2, COLORS, IRONPY, TYPE_CHECKING, WINDOWS, unicode
44
from . import util as Util
55
from . import chat as Chat
66
from . import user as User
@@ -68,7 +68,9 @@ def __init__(self, host, port, world, other_if, tls):
6868

6969
self.ep = (host, port)
7070
self.srv_sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
71-
self.srv_sck.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
71+
if not WINDOWS or self.ar.reuseaddr:
72+
self.srv_sck.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
73+
7274
try:
7375
self.srv_sck.bind(self.ep)
7476
self.srv_sck.listen(1)

0 commit comments

Comments
 (0)