summaryrefslogtreecommitdiffstats
path: root/modules/invitejoin.bash
blob: d76d85d349410004dc2be5155ce6eba9e7dabb98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# modules/invitejoin.bash
#
# Joins channels when invited.


if [ -z "$IRCBOT_MODULE" ]; then
	printf "error: %s is a module for ircbot.bash and should not be run separately\n" "$0"
	exit 1
fi


# joins the channel the bot was invited to
on_self_invite() { # args: $1 - source, $2 - channel
	sendmsg JOIN "$2"
}