To directly fix the error you’re having, change
message = separate[2]
to
message = separate[1]
Keep in mind this will only work as intended as long as there is only one : in the entire IRC message.
To directly fix the error you’re having, change
message = separate[2]
to
message = separate[1]
Keep in mind this will only work as intended as long as there is only one : in the entire IRC message.