aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-23 21:39:46 +0000
committerGravatar jesopo2019-02-23 21:39:46 +0000
commit5baa688fbc93233c8c2a6a12a8575a266eae6e0c (patch)
tree0cf70dba6aefdf674771ae6a76b562a91dff74ab /src
parentMove utils.irc.IRCParsedLine to IRCLine.ParsedLine, improve truncation (diff)
signature
Make IRCArgs mutable
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,