but if you want the code:

on *:TEXT:http*:#:{
write urls.txt $nick $+ : $1-
}