hab neulich mal zeit gefunden, meinen windrop neu zu machen...
hab ein broadcast script eingebaut, allerdings funzt es nicht so wie es soll, bzw. es funzt so wie es soll, ich will es aber anders
![Wink ;)](./images/smilies/wink.gif)
mein problem ist, dass bei broadcasts immer der nick von dem user vorrangesetzt wird, der den befehl ausgelöst hat...
bsp
(l-casei-yuckfou) [|glp|paNdorrA] -rehash-
sollte aber so aussehen
(l-casei-yuckfou) (broadcast) -rehash-
Code: Alles auswählen
proc pub_lol_broadcast {nick host hand chan arg} {
set arg [charfilter $arg]
global lol botnick
if {![check $hand $nick $host]} {
if {$lol(silent) == 1 || [checksilent $hand]} {return 0}
puthelp "NOTICE $nick :You need to be identified to use this function. Type .identhelp in the partyline for more info. : \002/msg $botnick id <password>\002 or \002/msg $botnick silent <password>\002 to no more receive this warning."
return 0
}
if {[llength $arg] < 1} {
puthelp "NOTICE $nick :\002Usage:\002 [string trim $lol(cmdchar)]broadcast <text>"
return 0
}
foreach c [channels] {
if {[matchattr $hand o|o $c] && [strlwr $c] != [strlwr $chan]} {
if {$lol(color) == 1} {
puthelp "PRIVMSG $c :\00314\[\003\002$nick\002\00314\]\003 $arg"
} {
puthelp "PRIVMSG $c :\[\002$nick\002\] $arg"
}
}
}
}
vlt bin ich blind, aber seh da nur if abfragen O_o