User Control Panel
Advertisements

HELP US, HELP YOU!

name length

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol
View unanswered posts
Author Message
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Fri Feb 11, 2005 11:26 am    Post subject: Reply with quote

What is the maximum length for a nickname in msn.pm 2?

Thanks,
Back to top
..::BIGmouth( )::..
God Like
God Like


Joined: 05 Feb 2004
Posts: 801

Reputation: 44.1Reputation: 44.1Reputation: 44.1Reputation: 44.1

PostPosted: Fri Feb 11, 2005 12:42 pm    Post subject: Reply with quote

There is none, but there is msnproto length.
or make your own in a command..

eg.
Code:
sub command {<br />my ($self, $msg, $username) = @_;<br /><br />if (length($msg) <= 105) {<br />$self->set_name($msg);<br />} else {<br />return "The length is too long.";<br />}<br />}
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Fri Feb 11, 2005 12:44 pm    Post subject: Reply with quote

aaaah 105 ( i had put into mine 128)
Back to top
Siebe
God Like
God Like


Joined: 06 Jan 2004
Posts: 562
Location: Netherlands
Reputation: 39.8Reputation: 39.8Reputation: 39.8Reputation: 39.8

PostPosted: Sat Feb 12, 2005 3:02 am    Post subject: Reply with quote

Quote:
As in the ADD command, if the nickname you assign is longer than 387 bytes (as of March 29, 2003), you will be immediately disconnected. However, the official client will not allow principals to set names to more than 129 characters (a three-byte URL-encoded character counts as one character) and will not properly display names with more than 129 characters. If you try to rename a principal that is not in any of your lists, you will receive error 216. This even applies if the account name is an invalid email address.
Back to top
..::BIGmouth( )::..
God Like
God Like


Joined: 05 Feb 2004
Posts: 801

Reputation: 44.1Reputation: 44.1Reputation: 44.1Reputation: 44.1

PostPosted: Sat Feb 12, 2005 4:57 am    Post subject: Reply with quote

Yep what Siebe said. Razz
I just put a random number for the length.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group