Skip to content

Commit 1ccfc4a

Browse files
authored
Merge pull request #14 from adator85/dev
Dev
2 parents 37f1419 + 3bf7c49 commit 1ccfc4a

20 files changed

+42
-75
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ docs/*
77
setup.py
88
test.py
99
CallbackObject.py
10+
unrealircd_rpc_py/Definition.py
1011
*.zip

README.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,6 @@ This package allows easy interfacing with UnrealIRCd through regular Python3 cod
167167
Stats = rpc.Stats
168168
User = rpc.User
169169
Whowas = rpc.Whowas
170+
Log = rpc.Log # This feature requires unrealIRCd 6.1.8 or higher
170171

171172
```
31.2 KB
Binary file not shown.

dist/unrealircd_rpc_py-0.1.6.tar.gz

21.6 KB
Binary file not shown.
31.6 KB
Binary file not shown.

dist/unrealircd_rpc_py-0.1.7.tar.gz

22 KB
Binary file not shown.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='unrealircd_rpc_py',
5-
version='0.1.5',
5+
version='0.1.7',
66
packages=find_packages(),
77
install_requires=[
88
"requests>=2.25.1"

unrealircd_rpc_py/Channel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def list_(self, _object_detail_level: int = 1) -> Union[list[ModelChannel], None
5050
ModelChannel: List of ModelChannel, None if nothing see the Error property
5151
"""
5252
try:
53+
self.DB_CHANNELS = []
5354
response = self.Connection.query(method='channel.list', param={'object_detail_level': _object_detail_level})
5455

5556
self.response_raw = response

unrealircd_rpc_py/Connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Connection:
1010

1111
@dataclass
1212
class ErrorModel:
13+
"""This model will contain the error if any"""
1314
code: int
1415
message: str
1516

@@ -19,6 +20,7 @@ def __init__(self, req_method:str, url: str, path_to_socket_file: str, username:
1920
self.Logs: logging
2021
self.__init_log_system()
2122
self.Error = self.ErrorModel(0, '')
23+
"""This model will contain the error if any"""
2224

2325
self.url = url
2426
self.path_to_socket_file = path_to_socket_file

unrealircd_rpc_py/Loader.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,7 @@ def __init__(self, req_method: Literal['requests', 'socket', 'unixsocket'], url:
100100
# Create Whowas Instance
101101
self.Whowas = Whowas(self.Connection)
102102
"""The Whowas module instance"""
103+
104+
# Create Log Instance
105+
self.Log = Log(self.Connection)
106+
"""This include mainly send method requires unrealIRCd 6.1.8 or higher"""

0 commit comments

Comments
 (0)