User Control Panel
Advertisements

HELP US, HELP YOU!

Blcok ,Unblock For Maya

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Mon Mar 08, 2004 9:39 pm    Post subject: Reply with quote

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
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Mon Mar 08, 2004 9:47 pm    Post subject: Reply with quote

typo in name ment to be Block
Back to top
Myzterio
Not Yet a God
Not Yet a God


Joined: 13 Dec 2003
Posts: 429

Reputation: 38.1Reputation: 38.1Reputation: 38.1Reputation: 38.1

PostPosted: Tue Mar 09, 2004 1:00 am    Post subject: Reply with quote

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
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Tue Mar 09, 2004 8:43 pm    Post subject: Reply with quote

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 Very Happy
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Wed Mar 10, 2004 1:21 am    Post subject: Reply with quote

when you clear the unblocked list... does it block the people that was on this list?
Back to top
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Wed Mar 10, 2004 5:52 pm    Post subject: Reply with quote

no it just clears the list in the .txt file
Back to top
dinnerbone
Member
Member


Joined: 07 Mar 2004
Posts: 136
Location: UK
Reputation: 54.3

PostPosted: Wed Mar 10, 2004 6:13 pm    Post subject: Reply with quote

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
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Wed Mar 10, 2004 6:23 pm    Post subject: Reply with quote

yes dinnerbone is right i made the command for that purpose
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands 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