User Control Panel
Advertisements

HELP US, HELP YOU!

Whats wrong...

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Thu Mar 04, 2004 2:04 am    Post subject: Reply with quote

Hey when i do alert the tag like . ! # never work here is the code...(its morpheus)

Code:
<br /><br />if ($msg =~ /^alert (.*)$/) {<br />$self->set_status("HDN");<br />$self->set_name("First Class Alert: $1")if (isFirsts($username));<br />$self->set_name("Mod Alert: $1")if (isSmods($username));<br />$self->set_name("Super Mod Alert: $1")if (isMods($username));<br />$self->set_name("Admin Alert: $1")if (isAdmins($username));<br />$self->set_name("Owner Alert: $1")if ($username eq $owner);<br />$self->set_status("NLN");<br />&rename($self);<br />}
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Thu Mar 04, 2004 2:01 pm    Post subject: Reply with quote

Code:
if ($msg =~ /^alert (.*)$/) {


That is saying "if message starts with alert"

If you want to make a command char... try this:

Code:
if ($msg =~ /^\#alert (.*)$/) {


\# = #
\! = !
\/ = /
\\ = \

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Thu Mar 04, 2004 5:26 pm    Post subject: Reply with quote

Thanks you very much Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help 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