I am using vincula 4.9 for groups . I would like a command to get the room url
I tried many ways $msn.geturl , $url , not working ..anyideas ?!
A TG007 community discussion started by bonTy.
on *:text:!url:#:{ msg $chan The room url is http://groups.msn.com/ $+ $remove($chan,$chr(37),$chr(35),G_) $+ /chat.msnw
??
Or you can use this code. This code will work for groups, or msnchat.
on *:text:!url:#:{
if ($left($server,12) == TK2CHATCHATG) { msg $chan The room url is http://groups.msn.com/ $+ $remove($chan,$chr(37),$chr(35),G_) $+ /chat.msnw }
elseif ($left($server,12) == TK2CHATCHATA) { msg $chan The room url is http://chat.msn.com/chatroom.msnw?rm= $+ $remove($chan,$chr(37),$chr(35)) }
}
the url http://chat.msn.com/chatroom.msnw?rm= $+ $remove($chan,$chr(37),$chr(35)) will not work if there is a space in the room name for example TEACHGEAR 007
the bot will try to join http://chat.msn.com/chatroom.msnw?rm=techgear 007
you need to use
http://chat.msn.com/chatroom.msnw?rm= $+ $replace($remove($chan,$chr(37),$chr(35)),$chr(32),%20)
o.O easiest way is this
alias chanlink return http://chat.msn.com/chatroom.msnw?rhx= $+ $msn.tohex($iif($1,$1,$chan))
then use $chanlink to get the link to your room, or $chanlink(%#some\broom\bname) to get the link to that room.
it should be replaced with %20 to get the right web link because it is msg in the channel so when other click it, it should take them to the room.
But yes I should replace $chr(32) by \b because mirc will fill spaces by \b
Don't work with market FR-FR and FR-CA !!!
EN-US , EN-CA , ... :
http://groups.msn.com/CCScript/chat.msnw
FR-FR , FR-CA , ... :
http://groups.msn.com/CCScript/discussion.msnw
Microsoft simplified the thing! One can use the redirection for all languages:
http://groups.msn.com/CCScript/chat
on *:text:!url:#:{
if ($left($server,12) == TK2CHATCHATG) { msg $chan Room URL http://groups.msn.com/ $+ $remove($chan,$chr(37),$chr(35),G_) $+ /chat | halt }
msg $chan Room URL http://chat.msn.com/chatroom.msnw?rm= $+ $remove($chan,$chr(37),$chr(35))
}
Works all over the world :-p
on *:text:!url:#: {
if ($left($server,12) == TK2CHATCHATG) { echo -a 14[9Group14]4 http://groups.msn.com/ $+ $remove($chan,$chr(37),$chr(35),G_) $+ /chat.msnw }
elseif ($left($server,12) == TK2CHATCHATA) { echo -a 14[9Room14]4 http://chat.msn.com/chatroom.msnw?rm= $+ $replace($remove($chan,$chr(35),$chr(37)),\b,$chr(37) $+ 20) }
}
nice C-drykâ„¢ but it somt time be wrong with rooms which contain space so this is working well ..tested
Get room url: clipboard http://groups.msn.com/ $+ $right(#,-4) $+ /chat | echo -a Added room link to clipboard ( $+ http://groups.msn.com/ $+ $right(#,-4) $+ /chat $+ )
Sign in to reply or start a new topic where your account has permission.