set a join message and when you join a channel it shows up :D
btw first script tell me how it is :o
Alt + R add to remotes :D
and also voices people :)
on *:text:*:#: {
if ($istok(!sjoin !setjoin,$1,32)) {
if ($2 != $null) {
writeini joinmessage.ini joinmessage $nick $2-
msg $chan $nick $+ , Your join message has been set. To view it Type !vjoin.
}
else Notice $Nick Syntax: !setjoin/!sjoin <message>
}
if ($istok(!vjoin !viewjoin,$1,32)) {
if ($2 != $null) {
if ($readini(joinmessage.ini,joinmessage,$2) == $null) {
msg $chan No join message for $2 is found..
}
else msg $chan [ $+ $2 $+ ] $readini(joinmessage.ini,joinmessage,$2)
}
else {
if ($readini(joinmessage.ini,joinmessage,$nick) == $null) {
msg $chan You dont have a join message.. D; !sjoin to add one.
}
else msg $chan [ $+ $nick $+ ] $readini(joinmessage.ini,joinmessage,$nick)
}
}
if ($istok(!deljoin !djoin,$1,32)) {
if ($readini(joinmessage.ini,joinmessage,$nick) = $null) {
msg $chan You don't even have a join message retard.
}
else {
remini joinmessage.ini joinmessage $nick
msg $chan Your join message has been deleted $nick $+ .
}
}
if $istok(!help !commands,$1,32) {
notice $nick Commands are: !sjoin !setjoin !viewjoin !vjoin !djoin !deljoin
}
}
on *:join:#: {
mode $chan +v $nick
if ($readini(joinmessage.ini,joinmessage,$nick) != $null) {
msg $chan [ $+ $nick $+ ] $readini(joinmessage.ini,joinmessage,$nick)
}
else notice $Nick You don't have a join message type !sjoin to make one.
}
on !*:JOIN:#: {
msg $nick I AM 1337
msg $chan I AM 1447
}
^^ you can not have if $nick isop $chan because on a join they can not be op\'ed as they are just joining the channel. And you don\'t want to message yourself when you join... If you really want to make this better make it so it does not do it more then once a hour or something. (to prevent floods)
Ok, you\'ve done a nice job. You might also want to mention that it also voices the person that joins.
Bug:
if $readini(joinmessage.ini,joinmessage,$nick) != $null) {
msg $chan $readini(joinmessage.ini,joinmessage,$nick)
}
You forgot a ( :
if ($readini(joinmessage.ini,joinmessage,$nick) != $null)
What I do is just this: if ($2) or if ($readini(joinmessage.ini,joinmessage,$nick)) which just checks if it won\'t return as $null