This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
whittinghamj
Op
Posts: 103 Joined: Sun May 21, 2006 4:50 pm
Post
by whittinghamj » Sat Sep 23, 2006 5:16 am
Hello guys.
Quick question / request if I may please.
I am looking for something like the following.
(User types this)
(user)whos the [censored] do you think you are son?
Now i have the ircd setup to replace [censored] with censored.
Everyone else sees blah blah (censored) blah blah
What I need is the bot to read every line of the irc channel chat - every channelt he bot is in. and when it see's the word
it puts out the following message
(bot> Please dont use language like that in a public channel.
Can anyone help me out with this please.
cheers
Jamie
monie089
Halfop
Posts: 76 Joined: Sat Jul 29, 2006 11:13 pm
Post
by monie089 » Sat Sep 23, 2006 6:19 am
Code: Select all
bind pub - "*censored" censored:check
proc censored:check {nick uhost hand chan text} {
putquick "PRIVMSG $nick :Please don't curse in $chan"
}
Something like this.
New server irc.NintendoXG.com come and visit
r0t3n
Owner
Posts: 507 Joined: Tue May 31, 2005 6:56 pm
Location: UK
Post
by r0t3n » Sat Sep 23, 2006 6:20 am
Not very well described... more confusing...
But i think this is what your looking for:
Code: Select all
bind pubm - * censored
proc censored {nickname hostname handle channel text} {
if {[string match -nocase *censored* $text]} {
putserv "PRIVMSG $channel :Please dont use language like that in a public channel."
}
}
r0t3n @ #r0t3n @ Quakenet
whittinghamj
Op
Posts: 103 Joined: Sun May 21, 2006 4:50 pm
Post
by whittinghamj » Sat Sep 23, 2006 6:44 am
thanks guys that did the trick nicely.
One more thing to do with this script.
Is it posable to have the following upgrade.
(user) why dont you go <consored> off !!!
(bot) Please dont use that language in a public chanel
but also
(bot) The following consored line was detected "why dont you go <censored> off !!!" $chan.
and the bots says that into our staff channel. this way I can see what the bot flagged the announce for?
something like arg -1 i think its something like that but not sure? does that make sence?
the bot should listen for the cencsored on all channels but report to #staff channel
The bot is an ircop if that makes any difference and its unrealircd if that makes any differnce as well.
cheers guys - your all aces.
Quest
metroid
Owner
Posts: 771 Joined: Wed Jun 16, 2004 2:46 am
Post
by metroid » Sat Sep 23, 2006 8:37 am
monie089 wrote: Code: Select all
bind pub - "*censored" censored:check
proc censored:check {nick uhost hand chan text} {
putquick "PRIVMSG $nick :Please don't curse in $chan"
}
Something like this.
You shouldn't attempt to make scripts for others since you obviously don't know how a PUB bind works.
also,
(user) why dont you go <consored> off !!!
(bot) Please dont use that language in a public chanel
Why don't you add that yourself, it's just another line which you then send to your 'staff' channel.
r0t3n
Owner
Posts: 507 Joined: Tue May 31, 2005 6:56 pm
Location: UK
Post
by r0t3n » Sat Sep 23, 2006 10:43 am
Code: Select all
bind pubm - * censored
proc censored {nickname hostname handle channel text} {
if {[string match -nocase *censored* $text] && ![string match -nocase #STAFFCHANNEL $channel]} {
putserv "PRIVMSG $channel :Please dont use language like that in a public channel."
putserv "PRIVMSG #STAFFCHANNEL :The following censored line was detected \"$text\" by $nickname on $channel.
}
}
Change both instances of #STAFFCHANNEL to your staff channel.
r0t3n @ #r0t3n @ Quakenet