|
| Author |
Message |
jeanhub Almost An Agent

Joined: 14 Feb 2004 Posts: 1138
 
|
Posted: Thu Mar 04, 2004 2:04 am Post subject: |
|
|
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

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Thu Mar 04, 2004 2:01 pm Post subject: |
|
|
| 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

Joined: 14 Feb 2004 Posts: 1138
 
|
Posted: Thu Mar 04, 2004 5:26 pm Post subject: |
|
|
Thanks you very much  |
|
| Back to top |
|
 |
|