chiark / gitweb /
helpinfos: Advertise the HTTPS URL for help.
[ircbot] / irc-identpass
1 ##   & range service-user 1000 9999
2 if ( grep calling-user /var/lib/ircbot/bot-users
3    & grep service-user-shell /etc/shells
4    )
5         execute sh -c "\
6                 if ! test -f .userv/irc-pass-md5; then          \n\
7 echo >&2 'no password set for '$USER' - see `help identpass'\\' \n\
8                         exit 2                                  \n\
9                 fi                                              \n\
10                 cmp -s - .userv/irc-pass-md5                    \n\
11                 rc=$?                                           \n\
12                 [ $rc = 1 ] && echo >&2 'incorrect password'    \n\
13                 exit $rc                                        \n\
14         "
15 fi