begin {snomask for klines}

# NOTE: This test breaks if there's an identd on the test runner

client god -oper god
    >> MODE [god nick] +s +K

    # Kline bansworth
    >> KLINE 5 ~bansworth@* ON * {Test}
    << NOTICE * {*K-Line*}

# ensure bansworth is banned (shocker!)
client klined -user bansworth
    << ERR_YOUREBANNEDCREEP
    << ERROR

god :
    << NOTICE * {*** K-line: *}
    >> UNKLINE ~bansworth@* ON *
    << NOTICE * {*** * has removed the temporary K-Line *}

    # Now test an X-Line
    >> XLINE 5 eggdrop?bot ON * {no bots}
    << NOTICE * {*** * added temporary 5 min. X-Line for *}

# ensure the xlined gecos doesn't work with the right error
client xlined -gecos "eggdrop bot"
    << ERROR {*Bad user info*}

god :
    << NOTICE * {*** X-line*}
    >> UNXLINE eggdrop?bot ON *
    << NOTICE * {X-Line for * is removed}
