@@ -20,23 +20,23 @@ def testChannelOperatorMode(self):
20
20
self .connectClient ("chanop" , name = "chanop" )
21
21
self .joinChannel ("chanop" , "#chan" )
22
22
23
- self .connectClient ("unprivd " , name = "unprivd " )
24
- self .joinChannel ("unprivd " , "#chan" )
23
+ self .connectClient ("unprivileged " , name = "unprivileged " )
24
+ self .joinChannel ("unprivileged " , "#chan" )
25
25
self .getMessages ("chanop" )
26
26
27
- self .connectClient ("otherguy " , name = "otherguy " )
28
- self .joinChannel ("otherguy " , "#otherguy " )
29
- self .joinChannel ("unprivd " , "#otherguy " )
30
- self .getMessages ("otherguy " )
27
+ self .connectClient ("unrelated " , name = "unrelated " )
28
+ self .joinChannel ("unrelated " , "#unrelated " )
29
+ self .joinChannel ("unprivileged " , "#unrelated " )
30
+ self .getMessages ("unrelated " )
31
31
32
32
# sender is a channel member but without the necessary privileges:
33
- self .sendLine ("unprivd " , "MODE #chan +o unprivd " )
34
- messages = self .getMessages ("unprivd " )
33
+ self .sendLine ("unprivileged " , "MODE #chan +o unprivileged " )
34
+ messages = self .getMessages ("unprivileged " )
35
35
self .assertEqual (len (messages ), 1 )
36
36
self .assertMessageMatch (messages [0 ], command = ERR_CHANOPRIVSNEEDED )
37
37
38
38
# sender is a chanop, but target nick is not in the channel:
39
- self .sendLine ("chanop" , "MODE #chan +o otherguy " )
39
+ self .sendLine ("chanop" , "MODE #chan +o unrelated " )
40
40
messages = self .getMessages ("chanop" )
41
41
self .assertEqual (len (messages ), 1 )
42
42
self .assertMessageMatch (messages [0 ], command = ERR_USERNOTINCHANNEL )
@@ -66,30 +66,30 @@ def testChannelOperatorMode(self):
66
66
)
67
67
68
68
# sender is not a channel member, target nick exists but is not a channel member:
69
- self .sendLine ("chanop" , "MODE #otherguy +o chanop" )
69
+ self .sendLine ("chanop" , "MODE #unrelated +o chanop" )
70
70
messages = self .getMessages ("chanop" )
71
71
self .assertEqual (len (messages ), 1 )
72
72
self .assertIn (messages [0 ].command , [ERR_NOTONCHANNEL , ERR_CHANOPRIVSNEEDED ])
73
73
74
74
# sender is not a channel member, target nick exists and is a channel member:
75
- self .sendLine ("chanop" , "MODE #otherguy +o unprivd " )
75
+ self .sendLine ("chanop" , "MODE #unrelated +o unprivileged " )
76
76
messages = self .getMessages ("chanop" )
77
77
self .assertEqual (len (messages ), 1 )
78
78
self .assertIn (messages [0 ].command , [ERR_NOTONCHANNEL , ERR_CHANOPRIVSNEEDED ])
79
79
80
80
# test an actually successful mode grant:
81
- self .sendLine ("chanop" , "MODE #chan +o unprivd " )
81
+ self .sendLine ("chanop" , "MODE #chan +o unprivileged " )
82
82
messages = self .getMessages ("chanop" )
83
83
self .assertEqual (len (messages ), 1 )
84
84
self .assertMessageMatch (
85
85
messages [0 ],
86
86
command = "MODE" ,
87
- params = ["#chan" , "+o" , "unprivd " ],
87
+ params = ["#chan" , "+o" , "unprivileged " ],
88
88
)
89
- messages = self .getMessages ("unprivd " )
89
+ messages = self .getMessages ("unprivileged " )
90
90
self .assertEqual (len (messages ), 1 )
91
91
self .assertMessageMatch (
92
92
messages [0 ],
93
93
command = "MODE" ,
94
- params = ["#chan" , "+o" , "unprivd " ],
94
+ params = ["#chan" , "+o" , "unprivileged " ],
95
95
)
0 commit comments