1 package Thrasher
::Protocol
::Purple
::MSN
;
7 Thrasher::Protocol::Purple::MSN - protocol for connection to Windows
8 Live Messenger, or whatever they're calling it this week.
12 use base
"Thrasher::Protocol::Purple";
14 use Thrasher
::Log
qw(log debug);
15 #use CGI qw(escapeHTML);
21 # This receives the message we're about to send out, and adds any
22 # further processing that may be necessary.
28 # return escapeHTML($message);
31 #sub process_remote_username {
34 # $s =~ tr/[A-Z]/[a-z]/;
39 sub fake_up_a_legacy_name
{
40 my ($self, $user_jid, $jid, $legacy_guess) = @_;
42 if ($legacy_guess !~ /@/) {
43 # Avoid discombobulation: msn_normalize adds @hotmail.com, but
44 # only after some things are set up w/o it (e.g. name_maps).
45 $legacy_guess .= '@hotmail.com';
52 sub identifier
{ "msn" }
53 sub gateway_prompt
{ "Enter MSN Username:" }
54 sub gateway_desc
{ "Enter MSN Username:" }
58 # no op--MSN prpl uses its own loop which ft.c do_transfer interferes with.
59 return 0; # don't repeat this notification.