|
| Author |
Message |
Myzterio Not Yet a God

Joined: 13 Dec 2003 Posts: 429
    
|
Posted: Fri Dec 26, 2003 11:03 pm Post subject: |
|
|
:huh: Hey, I Need help :S I Have the Mod Code but it works but it doesnt regonize them as a Moderator so when i !hardboot it still doesnt
Here is The Code :
if ($msg =~ /^\!mod (.*)/i) { $self->sendmsg("One moment please!", "$username"); open (DATA, ">>users/mods.txt"); print DATA "$1,"; close(DATA); $self->sendmsg("$1 is now a moderator!"); return;
Thanks, Id appericate if anyone can help me  I have Created a Folder Called "users" and Did Everything But Still Something's Wrong With It. |
|
| Back to top |
|
 |
Nate God Like

Joined: 12 Nov 2003 Posts: 553
    
|
|
| Back to top |
|
 |
Myzterio Not Yet a God

Joined: 13 Dec 2003 Posts: 429
    
|
Posted: Sun Dec 28, 2003 2:24 am Post subject: |
|
|
| :huh: I know that but Im having problems with the Moderator Code not the Unmode code, that explains the Unmod code :unsure: |
|
| Back to top |
|
 |
Joe Young One

Joined: 09 Nov 2003 Posts: 89
   
|
Posted: Sun Dec 28, 2003 2:54 am Post subject: |
|
|
Have *lazy* tried:
| Code: | | if ($msg =~ /^\!mod (.*)/i) {<br />$self->sendmsg("One moment please!", "$username");<br />open (DATA, ">>users/mods.txt");<br />print DATA "$username";<br />close(DATA);<br />$self->sendmsg("$username is now a moderator!");<br />return; |
or
| Code: | | if ($msg =~ /^\!mod (.*)/i) {<br />$self->sendmsg("One moment please!", "$username");<br />open (DATA, ">>users/mods.txt");<br />print DATA "$victim";<br />close(DATA);<br />$self->sendmsg("$victim is now a moderator!");<br />return; |
|
|
| Back to top |
|
 |
Keenie Almost An Agent

Joined: 31 Oct 2003 Posts: 1071
 
|
Posted: Sun Dec 28, 2003 5:16 am Post subject: |
|
|
| have you set up the handler correctly to see if they are a mod or not? i bet thats your problem. |
|
| Back to top |
|
 |
Myzterio Not Yet a God

Joined: 13 Dec 2003 Posts: 429
    
|
Posted: Sun Dec 28, 2003 9:25 am Post subject: |
|
|
I dont think So.. Im Just a New Learner On Perl, Altho I have Alote Of Commands Done. |
|
| Back to top |
|
 |
|