And make sure that all the channels you want a greeting for a user that has one displayed in the channel when they join are set to +greet (all are by default).<Owner> .help info
<Bot> [10:01] #Owner# help info
<Bot> ### info [channel] [info-line]
<Bot> Sets your info line. This line is shown via the /msg commands 'who' and
<Bot> 'whois'. If you have set greet on, it is also shown when you joins the
<Bot> channel. If the info line begins with an '@', then it is "locked", and tou
<Bot> may no longer change it.
<Bot> See also: chinfo
<Owner> .help chinfo
<Bot> [10:01] #Owner# help chinfo
<Bot> ### chinfo <user> [channel] [info-line/none]
<Bot> Sets the information line for a user. This line is shown via the /msg
<Bot> commands 'who' and 'whois'. If you have set greet on, it is also
<Bot> shown when the user joins the channel. If the info line begins with an '@',
<Bot> then it is "locked", and that user may no longer change it. If the channel
<Bot> name is omitted, the default info line is changed. If you specify 'none'
<Bot> as the info-line, it will be erased.
<Bot>
<Bot> See also: info
Code: Select all
# Set this setting to 1 if you want your bot to share user greets with other
# bots on the channel if sharing user data.
set share-greet 0
# Set this setting to 1 if you want to allow users to store an info line.
set use-info 1
# Set here the time (in seconds) that someone must have been off-channel
# before re-displaying their info line.
set wait-info 180
# If you are so lame you want the bot to display peoples info lines, even
# when you are too lazy to add their chanrecs to a channel, set this to 1.
# *NOTE* This means *every* user with an info line will have their info
# line displayed on EVERY channel they join (provided they have been gone
# longer than wait-info).
set no-chanrec-info 0
# Enable this setting if a user's global info line should be displayed
# when they join a botnet channel.
set info-party 0
Callisto wrote:http://www.egghelp.org/tclhtml/348-4-0-0-1-greet.htm
Pick one that is close to what you want and tweak it to your needs.
Good luck
bind JOIN - * pJoinProc
proc pJoinProc {nick uhost hand chan} {
if {[matchattr [nick2hand $nick] n]} {
putserv "PRIVMSG $chan :hello $nick"
}
}
Code: Select all
if {[matchattr [nick2hand $nick] n]} {
# code
}
Code: Select all
if {[matchattr $hand n]} {
# code
}