Add ban duration to ban message

If I did this right, it should add the ban duration to the "you have been banned" message.
Should I add

    if duration=none:
        duration=0

between lines 96 and 97?