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!
MeJseL
Halfop
Posts: 61 Joined: Tue Nov 18, 2003 7:30 am
Location: Gothenburg , sweden
Post
by MeJseL » Tue Jan 24, 2006 10:53 pm
EDIT:
Code: Select all
bind pubm - "*http://*" blabla_url
bind pubm - "*www*" blabla_url
proc blabla_url {nick host hand chan arg} {
if {[botisop $chan]} { return 0
}
putserv "PRIVMSG #MYCHANNEL :$nick: $arg"
return 0
}
Ok i have this.
This will grab urls and msg the whole line to the channel of my choice.
But if the bot is op on channel it will not msg the url line.
As far as this i can handel
But what i want help with is to make the bot only msg the url and not the whole line.
And instead of me using this lame botisop $chan becouse i dont want the bot to msg the url that is triggered from "#MYCHANNEL" the channel where every msg goes.
yeah!
MeJseL
Halfop
Posts: 61 Joined: Tue Nov 18, 2003 7:30 am
Location: Gothenburg , sweden
Post
by MeJseL » Wed Feb 01, 2006 10:09 pm
anyone?...
yeah!
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Thu Feb 02, 2006 2:14 am
Code: Select all
regexp {(?i)(http://\S+)} $str -> url
connection, sharing, dcc problems? click
<here>
before asking for scripting help, read
<this>
use
MeJseL
Halfop
Posts: 61 Joined: Tue Nov 18, 2003 7:30 am
Location: Gothenburg , sweden
Post
by MeJseL » Fri Feb 03, 2006 2:11 pm
demond wrote: Code: Select all
regexp {(?i)(http://\S+)} $str -> url
what does the code do?
do i need to add somthing more?
Edit: i got it thx.
yeah!