aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IRCLine.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/IRCLine.py b/src/IRCLine.py
index 64aa573e..91a7031b 100644
--- a/src/IRCLine.py
+++ b/src/IRCLine.py
@@ -17,8 +17,10 @@ class IRCArgs(object):
return "IRCArgs(%s)" % self._args
def __len__(self) -> int:
return len(self._args)
- def __getitem__(self, index) -> str:
+ def __getitem__(self, index: int) -> str:
return self._args[index]
+ def __setitem__(self, index: int, value: str):
+ self._args[index] = value
class Hostmask(object):
def __init__(self, nickname: str, username: str, hostname: str,