User Control Panel
Advertisements

HELP US, HELP YOU!

Variable

 
Post new topic   Reply to topic    Bot Depot Forum Index -> MSN Protocol
View unanswered posts
Author Message
Vorx
Senior Member
Senior Member


Joined: 21 Dec 2003
Posts: 152

Reputation: 32Reputation: 32Reputation: 32

PostPosted: Wed Dec 31, 2003 12:24 am    Post subject: Reply with quote

Hi, could someone help me with this problem.

I have my alert command working fine, but i'd like it to show the users nickname when they use it.

I did this:

Code:
<br /> $self->set_name("BOTRIX [$victim]: $1");<br />

The problem with this is it shows the full email address, and this takes up too much room on the popup. I'd like to somehow either use a ready made nickname variable or to allow the user to write their name in when they use the command, so maybe something like this:

Quote:
User Says:
:alert name message


I hope someone can help thanks Very Happy
Back to top
Nate
God Like
God Like


Joined: 12 Nov 2003
Posts: 553

Reputation: 41.3Reputation: 41.3Reputation: 41.3Reputation: 41.3

PostPosted: Wed Dec 31, 2003 12:26 am    Post subject: Reply with quote

In the Message sub there should be a variable passed which is the user's "Friendly Name"

If you're using the WiredBots code, you may or may not need to change the variables recieved in on_im (I'm not sure if they need be changed or not Razz) Look at Eric's demo bot to see what variables get recieved.
Back to top
Vorx
Senior Member
Senior Member


Joined: 21 Dec 2003
Posts: 152

Reputation: 32Reputation: 32Reputation: 32

PostPosted: Wed Dec 31, 2003 12:35 am    Post subject: Reply with quote

Hi, I am as ever using the Wiredbots template.

My message sub calls the on_im so i'll have a look there. Is it easy to define a new variable of $nick cos it would be a lot easier lol and I'm a lazy sod lol.
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