ini is too slow for my tastes. I like hash or MySql if the list gets to be too big.
Molson, $address is a parameter in any normal event. I find it hard to believe you do not get the proper information. Unless, of course, you are using a socket connection that does not handle the event properly.
You can use $rawmsg and gettok the mask from it.
on *:join:#:{
echo 3 $chan . $nick 's address is $address
echo 12 $chan . $rawmsg
}
Id be really surprised if these echo's didn't return $address and $rawmsg. Try them please.
And yeah, you shouldn't who the channel whenever someone joins. If you do not plan on making your code public and the rooms you are in have 5 or 6 people in them then thats ok, but you wouldn't want to be in a room of 40 or 60 and who whenever someone joins. What if there is a join flood? What if 5 people join within 3 seconds of each other? It could easily flood you out, and will always impose strain on the server.
Just a sidenote to anyone ... contrary to popular belief, the chat servers aren't a hacking challenge, or "let's see if we can crash the server". Maybe when it was MSN and you felt all cool for messing with a huge corporation, but now the servers are run by hoobyists. The server is your chat livelihood, so be kind to it.
Edited Apr 19, 2008 4:15 PM by Travis