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!
simo
Revered One
Posts: 1085 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Thu Feb 28, 2019 11:10 am
anyway to change this to have it set modes in the manner of for example:
+m
+vvvvvv nick nick nick nick nick
+l 120
+k secretkey
+M
+i
-i
+i
+b *!*@host
and so on, with the criteria of first char should be a + or - to determine its a mode setting
Code: Select all
bind pubm o|o * chan:modes
proc chan:modes { user host ident chan arg } {
set mode [lindex [split $arg] 0]
putserv "MODE $chan :$mode"
}
because as the code is it sets modes even if regular words are written
like im ok tnx and how about u ( it will set +im and so on while there was no + - used )
Last edited by
simo on Thu Feb 28, 2019 4:29 pm, edited 1 time in total.
willyw
Revered One
Posts: 1200 Joined: Thu Jan 15, 2009 12:55 am
Post
by willyw » Thu Feb 28, 2019 11:18 am
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
SpiKe^^
Owner
Posts: 831 Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:
Post
by SpiKe^^ » Thu Feb 28, 2019 2:14 pm
Try replacing this one line...
with these 2 lines...
Code: Select all
bind pubm o|o "#% +?*" chan:modes
bind pubm o|o "#% -?*" chan:modes
and restart the bot, to unload the old bind and add these 2.
Last edited by
SpiKe^^ on Thu Feb 28, 2019 7:22 pm, edited 1 time in total.
simo
Revered One
Posts: 1085 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Thu Feb 28, 2019 4:10 pm
hm ok tried your suggestion SpiKe^^ and it didnt do anything and no errors
SpiKe^^
Owner
Posts: 831 Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:
Post
by SpiKe^^ » Thu Feb 28, 2019 7:22 pm
Updated the above code. Try again.
simo
Revered One
Posts: 1085 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Fri Mar 01, 2019 9:38 am
tried it and seems to work well thnx SpiKe^^ apreciated as always
simo
Revered One
Posts: 1085 Joined: Sun Mar 22, 2015 2:41 pm
Post
by simo » Thu Mar 21, 2019 7:55 am
i had just one small detail , in the case of mentioning a voiced nick in the first parameter might result in a false positive for example:
if a chanop or me would type
+mike are u around buddy
and mike would be in channel and voiced that would trigger this tcl and set channelmodes +mi in channel wich is an unwanted effect perhaps its an idea to check if there is a nick in first parameter that is in channel present to then ignore the function of setting mode if that to be the case