|
| Author |
Message |
Calum Not Yet a God

Joined: 21 Feb 2004 Posts: 373 Location: england
   
|
Posted: Mon Mar 08, 2004 9:39 pm Post subject: |
|
|
This Is Block:
| Code: | | if ($msg =~ /^block (.*)/i) {<br /> $msn->block($1);<br /> $self->sendmsg("User $1 Has Been Blocked");<br /> goto end;<br />} |
This Is Unblock:
| Code: | | if ($msg =~ /^unblock (.*)/i) {<br /> $msn->unblock($1);<br /> $self->sendmsg("User $1 Has Been Unblocked");<br /> goto end;<br />} |
Hope You Like Them Please feel fee to post useful comments/suggestions |
|
| Back to top |
|
 |
Calum Not Yet a God

Joined: 21 Feb 2004 Posts: 373 Location: england
   
|
Posted: Mon Mar 08, 2004 9:47 pm Post subject: |
|
|
| typo in name ment to be Block |
|
| Back to top |
|
 |
Myzterio Not Yet a God

Joined: 13 Dec 2003 Posts: 429
    
|
Posted: Tue Mar 09, 2004 1:00 am Post subject: |
|
|
And To Log Blocks, you do ;
| Code: | | <br />if ($msg=~/^block (.*)$/) {<br />$msn->block ($1);<br />$self-sendmsg ("$1 has now been unblocked by $username");<br />$self-sendmsg ("This Block has been recorded for security reasons");<br />open (DATA, ">>alert/alert.txt");<br />print DATA "Email Blocker : $username\n Email Blocked : $1";<br />close(DATA);<br />}<br /> |
Then to view it ;
| Code: | | <br />if ($msg=~/^#blocklog/) {<br />open (DATA, "block/block.txt");<br />@line = <DATA>;<br />close(DATA);<br />$self->sendmsg("@line");<br /> } |
:rolleyes: Thanks, Also just made a block folder and block.txt |
|
| Back to top |
|
 |
Calum Not Yet a God

Joined: 21 Feb 2004 Posts: 373 Location: england
   
|
Posted: Tue Mar 09, 2004 8:43 pm Post subject: |
|
|
And to clear the blocked / unblocked.txt file.:
| Code: | | if ($msg =~ /^clearu/i) {<br />$self->sendmsg("Clearing Unblocked List"); <br />open (DATA, ">/unblocked.txt");<br />print DATA " ";<br />close(DATA);<br />goto end;<br />}<br /> |
| Code: | | if ($msg =~ /^clearb/i) {<br />$self->sendmsg("Clearing Blocked List"); <br />open (DATA, ">/blocked.txt");<br />print DATA " ";<br />close(DATA);<br />goto end;<br />} |
hope these help  |
|
| Back to top |
|
 |
jeanhub Almost An Agent

Joined: 14 Feb 2004 Posts: 1138
 
|
Posted: Wed Mar 10, 2004 1:21 am Post subject: |
|
|
| when you clear the unblocked list... does it block the people that was on this list? |
|
| Back to top |
|
 |
Calum Not Yet a God

Joined: 21 Feb 2004 Posts: 373 Location: england
   
|
Posted: Wed Mar 10, 2004 5:52 pm Post subject: |
|
|
| no it just clears the list in the .txt file |
|
| Back to top |
|
 |
dinnerbone Member

Joined: 07 Mar 2004 Posts: 136 Location: UK
 
|
Posted: Wed Mar 10, 2004 6:13 pm Post subject: |
|
|
| The list it clears is just telling *lazy* hu the mods have bloked, it had nothing to do with *lazy* bots blok list on msn. |
|
| Back to top |
|
 |
Calum Not Yet a God

Joined: 21 Feb 2004 Posts: 373 Location: england
   
|
Posted: Wed Mar 10, 2004 6:23 pm Post subject: |
|
|
| yes dinnerbone is right i made the command for that purpose |
|
| Back to top |
|
 |
|