nagios: Fix the check_supybot_pugin
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
373d9385e1
commit
65c85dd5ec
1 changed files with 3 additions and 3 deletions
|
@ -72,16 +72,16 @@ try:
|
|||
|
||||
while 1:
|
||||
readbuffer = readbuffer+s.recv(1024).decode()
|
||||
temp = str.split(readbuffer, "\n")
|
||||
temp = readbuffer.split("\n")
|
||||
readbuffer = temp.pop()
|
||||
|
||||
for line in temp:
|
||||
line = str.rstrip(line)
|
||||
line = line.rstrip()
|
||||
|
||||
if args.debug:
|
||||
print(" * ", line)
|
||||
|
||||
line = str.split(line)
|
||||
line = line.split()
|
||||
|
||||
if line[1] == 'MODE':
|
||||
msg = "privmsg zodbot :list\r\n".encode()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue