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.

trigger chan msg

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
M
MeJseL
Halfop
Posts: 61
Joined: Tue Nov 18, 2003 7:30 am
Location: Gothenburg , sweden

trigger chan msg

Post by MeJseL »

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!
M
MeJseL
Halfop
Posts: 61
Joined: Tue Nov 18, 2003 7:30 am
Location: Gothenburg , sweden

Post by MeJseL »

anyone?...
yeah!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

Code: Select all

regexp {(?i)(http://\S+)} $str -> url
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
M
MeJseL
Halfop
Posts: 61
Joined: Tue Nov 18, 2003 7:30 am
Location: Gothenburg , sweden

Post by MeJseL »

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!
Post Reply