Paul Crowley (ciphergoth) wrote in lj_textmessage,
Paul Crowley
ciphergoth
lj_textmessage

Not getting user information through uboot

I've signed up using the German provider uboot (http://www.uboot.com/), and it seems that text messages aren't accompanied by information about who sent them! Is this a known issue?

Update: I've looked at the code and the problem is pretty obvious!
    elsif ($provider eq "sprintpcs")
    {
        post_webform("http://www.messaging.sprintpcs.com/sms/check_message_syntax.html", [ ], { # no error checking
            "mobilenum" => $self->{'number'},
            "message"   => "($msg->{'from'}) $msg->{'message'}",
            "java"      => "yes",  # they mean javascript.  dumb asses.
        });
    }

    elsif ($provider eq "uboot")
    {
        post_webform("http://www.uboot.com/cgi-bin/nickpage.fcgi", $errors, {
            "page"      => "Sms",
            "action"    => "send_sms",
            "nickname"  => $self->{'number'},
            "text"      => $msg->{'message'},
        });
    }
So people with Sprint PCS get the user prepended to the message, but ubooters don't. Anyone know why? This easy patch would fix it:
diff -ru LJ-TextMessage-1.4.1/TextMessage.pm LJ-TextMessage/TextMessage.pm
--- LJ-TextMessage-1.4.1/TextMessage.pm	Sat May 19 21:59:21 2001
+++ LJ-TextMessage/TextMessage.pm	Mon Sep  3 15:33:55 2001
@@ -432,7 +432,7 @@
             "page"	=> "Sms",
             "action"	=> "send_sms",
             "nickname"	=> $self->{'number'},
-            "text"	=> $msg->{'message'},
+            "text"	=> "($msg->{'from'}) $msg->{'message'}",
         });
     }
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments