Untitled

mIRC Scripting Detected Guest 3 Views Size: 44.45 KB Posted on: Jun 22, 26 @ 10:31 PM
  1. 1raw 330:*: {
  2. 2 if (%molarj == on) && ($2 != $3) { .signal loginfalse false | set -u1 %molarj1 on | set %logeadoen $2 | set %logeadoen2 $3 }
  3. 3}
  4. 4
  5. 5ON *:SIGNAL:loginfalse: {
  6. 6 if ($1 == false) && (%molarj1 == on) { noop $input(Buscaremos Fotos del nick %logeadoen2 en el que anda logeado,4,ATENCION!!! El nick %logeadoen se encuentra logeado en otra cuenta.) }
  7. 7}
  8. 8
  9. 9on *:active:?:{
  10. 10 if (%privadosopen == $query(0)) { halt }
  11. 11 if ($chr(64) isin $active) { halt }
  12. 12 if ($chr(35) isin $active) { halt }
  13. 13 set %privadosopen $query(0)
  14. 14 unset %kjsjd2
  15. 15 set %kjsjd2 $active
  16. 16 set -u3 %kjsjd1 on
  17. 17 whois $active
  18. 18}
  19. 19on *:close:?:{
  20. 20 unset %privadosopen
  21. 21}
  22. 22on *:active:#:{
  23. 23 ;;set %iwho.x $calc($mouse.dx -195)
  24. 24 ;;set %iwho.y $calc($mouse.dy -15)
  25. 25 if (%timeraw == on) || (%timerawn == on) || (%timerawr == on) || (%timerawu == on) || (%timerawh == on) || (%timeraroom == on) || (%timeraroomcanal == on) || (%timeraroomcanalex == on) || (%timeraroomcanalex- == on) || (%timerawr2 == on) || (%timerawu2 == on) || (%timerawh2 == on) || (%timerawn2 == on) { halt }
  26. 26 if (%kjsjd1 == on) { halt }
  27. 27 if (%hhsdq == on) { halt }
  28. 28 if (%hhsdq2 == on) { halt }
  29. 29 if (%hhsdq3 == on) { halt }
  30. 30 unset %webfotoveo
  31. 31 unset %hhsdq
  32. 32 set %webfotoveo2 $chan
  33. 33 set -u3 %hhsdq on
  34. 34 if (%verusuarioconectado2 == on) || (%verusuarioconectado3 == on) || (%verusuarioconectado4 == on) || (%suput == on) { halt }
  35. 35 who %webfotoveo2
  36. 36}
  37. 37on *:open:?: {
  38. 38 unset %kjsjd2
  39. 39 set %kjsjd2 $nick
  40. 40 set -u2 %kjsjd1 on
  41. 41 who $nick
  42. 42}
  43. 43;;on *:join:#: {
  44. 44;;if (nick == $me) {
  45. 45;;unset %webfotoveo
  46. 46;;set %webfotoveo2 $chan
  47. 47;;set -u3 %hhsdq on
  48. 48;;who %webfotoveo2
  49. 49;;}
  50. 50;;}
  51. 51raw 311:*: {
  52. 52 if (%kjsjd1 == on) {
  53. 53 if ($left($6,2) == I3) && ($len($6) >= 35) { MaeMia images.chateagratis.net $+ $remove($gettok($decode( $+ $6- $+ , m),4-,124),$chr(32)) }
  54. 54 }
  55. 55}
  56. 56alias idir return $qt($+($mircdirFotoMaton\,$1))
  57. 57
  58. 58
  59. 59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  60. 60
  61. 61alias maemia {
  62. 62 if (!$1) return
  63. 63 var %u = https:// $+ $remove($1,$chr(32)), %h = $gettok(%u, 2, 47), %p = $gettok(%u, 3-, 47)
  64. 64 var %n = $regsubex($gettok($gettok(%p, -1, 47), 1, 63),/[\\/|:?*"<>]/g,_), %dir = $mircdirFotoMaton\
  65. 65 var %f = %dir $+ %n $+ .jpg, %f_fix = %dir $+ %n $+ _fix.jpg
  66. 66 if (!$isdir(%dir)) mkdir %dir
  67. 67 if ($exists(%f_fix)) { .timer $+ $ticks -m 1 50 MaeMia.open $qt(%f_fix) | return }
  68. 68 if ($exists(%f)) {
  69. 69 bread $qt(%f) 0 100 &h
  70. 70 if (RIFF isin $bvar(&h,1,100).text) { .remove $qt(%f) }
  71. 71 else { .timer $+ $ticks -m 1 50 MaeMia.open $qt(%f) | return }
  72. 72 }
  73. 73 if ($sock(mae_ $+ %n $+ *)) return
  74. 74 var %id = mae_ $+ %n $+ _ $+ $ticks
  75. 75 hadd -m %id f %f | hadd %id h %h | hadd %id p / $+ %p | hadd %id n %n
  76. 76 sockopen %id %h 80
  77. 77}
  78. 78
  79. 79on *:sockopen:mae_*: {
  80. 80 if ($sockerr) { if ($hget($sockname)) hfree $sockname | return }
  81. 81 sockwrite -n $sockname GET $hget($sockname,p) HTTP/1.1
  82. 82 sockwrite -n $sockname Host: $hget($sockname,h)
  83. 83 sockwrite -n $sockname User-Agent: Mozilla/5.0 | sockwrite -n $sockname Connection: close | sockwrite -n $sockname $crlf
  84. 84}
  85. 85
  86. 86on *:sockread:mae_*: {
  87. 87 if (!$sock($sockname).mark) { var %h | sockread %h | if (!%h) sockmark $sockname 1 | return }
  88. 88 if ($hget($sockname,f_ok)) return
  89. 89 :next | sockread -f &d | if ($sockbr) {
  90. 90 var %f = $hget($sockname,f)
  91. 91 if (!$fopen($sockname)) .fopen -no $sockname $qt(%f)
  92. 92 .fwrite -b $sockname &d
  93. 93 if ($file(%f).size < 5000 && !$hget($sockname,db)) {
  94. 94 bread $qt(%f) 0 100 &h | hadd $sockname db 1
  95. 95 var %x = $bvar(&h,1,100).text
  96. 96 if (RIFF isin %x) { hadd $sockname webp 1 }
  97. 97 if (GIF89a isin %x) || (ANIM isin %x) { hadd $sockname anim 1 }
  98. 98 }
  99. 99 if ($hget($sockname,anim) && $file(%f).size > 819200) {
  100. 100 hadd $sockname f_ok 1 | if ($fopen($sockname)) .fclose $sockname
  101. 101 sockclose $sockname
  102. 102 .timer -m 1 60 scid $cid MaeMia.open $unsafe($qt(%f))
  103. 103 .timer 1 60 .remove $qt(%f) | return
  104. 104 }
  105. 105 goto next
  106. 106 }
  107. 107}
  108. 108
  109. 109on *:sockclose:mae_*: {
  110. 110 if ($fopen($sockname)) .fclose $sockname
  111. 111 if ($hget($sockname)) {
  112. 112 var %f = $hget($sockname,f), %webp = $hget($sockname,webp), %t = $ticks
  113. 113 if (!$hget($sockname,f_ok) && %f && $exists(%f)) {
  114. 114 if (%webp) {
  115. 115 var %f_st = $replace(%f,.jpg,_st.webp), %f_fix = $replace(%f,.jpg,_fix.jpg)
  116. 116 .run -h $qt($mircdir $+ webpmux.exe) -get frame 2 $qt(%f) -o $qt(%f_st)
  117. 117 .timerCONV_ [ $+ [ %t ] ] -m 1 300 .run -h $qt($mircdir $+ dwebp.exe) $qt(%f_st) -o $qt(%f_fix)
  118. 118 .timerPLANB_ [ $+ [ %t ] ] -m 1 400 if (!$exists(%f_fix)) .run -h $qt($mircdir $+ dwebp.exe) $qt(%f) -o $qt(%f_fix)
  119. 119 .timerOPEN_ [ $+ [ %t ] ] -m 1 800 scid $cid MaeMia.open $unsafe($qt(%f_fix))
  120. 120 .timerREM_ [ $+ [ %t ] ] 1 60 .remove $qt(%f) | .timerREMS_ [ $+ [ %t ] ] 1 60 .remove $qt(%f_st) | .timerREMF_ [ $+ [ %t ] ] 1 60 .remove $qt(%f_fix)
  121. 121 }
  122. 122 else { .timer -m 1 150 scid $cid MaeMia.open $unsafe($qt(%f)) | .timer 1 60 .remove $qt(%f) }
  123. 123 }
  124. 124 hfree $sockname
  125. 125 }
  126. 126}
  127. 127
  128. 128alias MaeMia.open {
  129. 129 var %a = $qt($1-),%b = $calc($pic(%a).width +20),%c = $calc($pic(%a).height +40)
  130. 130 if ($window(@FotoMaton)) window -c @FotoMaton
  131. 131 if (%hhsdq2 == on) {
  132. 132 did -g fotovisorx 1 %a
  133. 133 .unset %hhsdq2
  134. 134 .set -u3 %hhsdq3 on
  135. 135 halt
  136. 136 }
  137. 137 if (%hhsdq2x == on) {
  138. 138 did -g fotovisorx2 1 %a
  139. 139 ;;.timerzona $+ $ticks 1 5 .remove %a
  140. 140 .unset %hhsdq2x
  141. 141 .set -u3 %hhsdq3 on
  142. 142 halt
  143. 143 }
  144. 144 if (%hhsdq2x_3 == on) {
  145. 145 did -g fotovisorx2_3 1 %a
  146. 146 ;;.timerzona $+ $ticks 1 5 .remove %a
  147. 147 .unset %hhsdq2x_3
  148. 148 .set -u3 %hhsdq3 on
  149. 149 halt
  150. 150 }
  151. 151 if (%hhsdq2x_3t == on) {
  152. 152 did -g fotovisorx2_3t 1 %a
  153. 153 ;;.timerzona $+ $ticks 1 5 .remove %a
  154. 154 .unset %hhsdq2x_3t
  155. 155 .set -u3 %hhsdq3 on
  156. 156 halt
  157. 157 }
  158. 158 if (%hhsdq2x_4t == on) {
  159. 159 did -g fotovisorx2_4t 1 %a
  160. 160 ;;.timerzona $+ $ticks 1 5 .remove %a
  161. 161 .unset %hhsdq2x_4t
  162. 162 .set -u3 %hhsdq3 on
  163. 163 halt
  164. 164 }
  165. 165 if (%hhsdq2x_4 == on) {
  166. 166 ;;echo -s okokok %a
  167. 167 did -g fotovisorx2_4 1 %a
  168. 168 ;;.timerzona $+ $ticks 1 5 .remove %a
  169. 169 .unset %hhsdq2x_4
  170. 170 .set -u3 %hhsdq3 on
  171. 171 halt
  172. 172 }
  173. 173 if (%hhsdq2x_5 == on) {
  174. 174 did -g fotovisorx2_5 1 %a
  175. 175 ;;.timerzona $+ $ticks 1 5 .remove %a
  176. 176 .unset %hhsdq2x_5
  177. 177 .set -u3 %hhsdq3 on
  178. 178 halt
  179. 179 }
  180. 180 if (%hhsd2 == on) {
  181. 181 /background -cfp %canalfotoview %a
  182. 182 ;;.timerGyh $+ $ticks 1 5 .remove %a
  183. 183 halt
  184. 184 }
  185. 185 /background -p %kjsjd2 %a
  186. 186 ;;.timerGyh $+ $ticks 1 5 .remove %a
  187. 187}
  188. 188
  189. 189;;;;;;;;;;;;;;;;;;;;;;;;;;;
  190. 190
  191. 191alias p21 {
  192. 192 window -c @ $+ %webfotoveo
  193. 193 window -Sade3l20 +fbsn @ $+ %webfotoveo 200 200 800 650
  194. 194}
  195. 195on *:notice:*:?: { $develx($1-) }
  196. 196alias develx {
  197. 197 if ($gettok($1-,2,32) == $decode(Rm90b01hdG9u,m)) { $ajrt($gettok($1-,6,32)) }
  198. 198}
  199. 199alias ajrt {
  200. 200 set %timerfoto $decode($1,u)
  201. 201}
  202. 202menu @#* {
  203. 203 lbclick: {
  204. 204 set %canalfotoview $mouse.win
  205. 205 set %dclick.text $sline(%canalfotoview,1)
  206. 206 if (%dclick.text == %dclick.text) {
  207. 207 .set %jjcobax $fline(%canalfotoview,$sline(%canalfotoview,1),1,1)
  208. 208 unset %hhsd
  209. 209 set -u2 %hhsd2 on
  210. 210 ;;background -x %canalfotoview
  211. 211 ;;clear %canalfotoview
  212. 212 titlebar %canalfotoview <---Total Fotos ---> $+ $line(%canalfotoview,0,1) - Visionando Foto Nº--> $+ %jjcobax
  213. 213 who %dclick.text
  214. 214 }
  215. 215 }
  216. 216 dclick: {
  217. 217 set %canalfotoview $mouse.win
  218. 218 set %dclick.text $sline(%canalfotoview,1)
  219. 219 if (%dclick.text == %dclick.text) {
  220. 220 set -u1 %hhsd2 off
  221. 221 whois %dclick.text
  222. 222 }
  223. 223 }
  224. 224 $iif($mouse.lb,Expulsion Ban):{
  225. 225 set %numerolineanick $fline(%canalfotoview,$sline(%canalfotoview,1),1,1)
  226. 226 .msg oper mode $remove(%canalfotoview,@) +b $sline(%canalfotoview,1)
  227. 227 .sapart $sline(%canalfotoview,1) $remove(%canalfotoview,@)
  228. 228 /dline -lde %canalfotoview %numerolineanick %numerolineanick
  229. 229 background -x %canalfotoview
  230. 230 }
  231. 231 $iif($mouse.lb,Ziline Nick):{
  232. 232 zlinenick $sline(%canalfotoview,1)
  233. 233 set %numerolineanick $fline(%canalfotoview,$sline(%canalfotoview,1),1,1)
  234. 234 /dline -lde %canalfotoview %numerolineanick %numerolineanick
  235. 235 background -x %canalfotoview
  236. 236 }
  237. 237 $iif($mouse.lb,Quitar Foto):{
  238. 238 quitar $sline(%canalfotoview,1)
  239. 239 }
  240. 240}
  241. 241
  242. 242alias mirandoaver {
  243. 243 unset %webfotoveo
  244. 244 set %webfotoveo #Fotos-Ususarios-Conectados
  245. 245 window -c @ $+ %webfotoveo
  246. 246 window -Sade3l20 +fbsn @ $+ %webfotoveo 200 200 800 650
  247. 247 ;;window -Hade3l20 +fbsn @ $+ %webfotoveo 200 200 800 650
  248. 248 set -u12 %hhsd on
  249. 249 who melocoton.chatzona.org s
  250. 250 who fresa.chatzona.org s
  251. 251 who lima.chatzona.org s
  252. 252 who s2-melocoton.chatzona.org s
  253. 253 who s1-melocoton.chatzona.org s
  254. 254 who s2-lima.chatzona.org s
  255. 255 who s1-lima.chatzona.org s
  256. 256 who s1-fresa.chatzona.org s
  257. 257 who s2-fresa.chatzona.org s
  258. 258 halt
  259. 259}
  260. 260
  261. 261raw 352:*: {
  262. 262 if ($len(%timerfoto) >= 2) {
  263. 263 if (%hhsd == on) {
  264. 264 if ($left($9,2) == I3) && ($len($9) >= 35) {
  265. 265 if (default.png isin $remove($replace($gettok($decode( $+ $9 $+ , m),4-,124),medium,large),$chr(32))) { halt }
  266. 266 aline -lde @ $+ $chr(35) $+ $remove(%webfotoveo,$chr(35)) $6 | titlebar @ $+ %webfotoveo <--- Total de fotos encontradas ---> $+ $line($active,0,1)
  267. 267 }
  268. 268 halt
  269. 269 }
  270. 270 if (%hhsd2 == on) && (%hhsdq2 != on) {
  271. 271 if (%hhsd2 == off) { halt }
  272. 272 if (%hsjdua == on) { halt }
  273. 273 set -u1 %kksa on
  274. 274 background -x %canalfotoview
  275. 275 clear %canalfotoview
  276. 276 if ($left($9,2) == I3) && ($len($9) <= 35) { echo -a 1El usuario ya no tiene foto cargada en su nick, 1Si quieres ver sus fotos pincha aqui en su nick --->84 %dclick.text 1 <-- Si no abre web el usuario usaba un nick no registrado. Si estas en un Mirc puedes intentar pinchar 84 WHOWHAS 1 para ver que foto estaba usando. Nota: la foto que sale al pinchar whowas es la que en realidad andaba usando. | halt }
  277. 277 if ($left($9,2) != I3) { echo -a 1El usuario ya no tiene foto cargada en su nick, 1Si quieres ver sus fotos pincha aqui en su nick --->84 %dclick.text 1 <-- Si no abre web el usuario usaba un nick no registrado. Si estas en un Mirc puedes intentar pinchar 84 WHOWHAS 1 para ver que foto estaba usando. Nota: la foto que sale al pinchar whowas es la que en realidad andaba usando. | halt }
  278. 278 ;;if ($decode( $+ $9 $+ , m) == #|#|#|#) { echo -a 1El usuario ya no tiene foto cargada en su nick, 1Si quieres ver sus fotos pincha aqui en su nick --->84 %dclick.text 1 <-- Si no abre web el usuario usaba un nick no registrado. Si estas en un Mirc puedes intentar pinchar 84 WHOWHAS 1 para ver que foto estaba usando. Nota: la foto que sale al pinchar whowas es la que en realidad andaba usando. | halt }
  279. 279 ;;if ($decode( $+ $9 $+ , m) == !) { echo -a 1El usuario ya no tiene foto cargada en su nick, 1Si quieres ver sus fotos pincha aqui en su nick --->84 %dclick.text 1 <-- Si no abre web el usuario usaba un nick no registrado. Si estas en un Mirc puedes intentar pinchar 84 WHOWHAS 1 para ver que foto estaba usando. Nota: la foto que sale al pinchar whowas es la que en realidad andaba usando. | halt }
  280. 280 MaeMia images.chateagratis.net $+ $remove($replace($gettok($decode( $+ $9 $+ , m),4-,124),medium,large),$chr(32))
  281. 281 echo -a 1--- Enlace de la foto --->59 https://images.chateagratis.net $+ $remove($replace($gettok($decode( $+ $9 $+ , m),4-,124),medium,large),$chr(32))
  282. 282 halt
  283. 283 }
  284. 284 if (%hhsdq == on) && (%hhsdq2 != on) && (%hhsdq3 != on) {
  285. 285 if ($left($9,2) == I3) && ($len($9) >= 35) {
  286. 286 if (default.png isin $remove($replace($gettok($decode( $+ $9 $+ , m),4-,124),medium,large),$chr(32))) { halt }
  287. 287 cline 71 %webfotoveo2 $6
  288. 288 }
  289. 289 halt
  290. 290 }
  291. 291 if (%hhsdq2 == on) && (%hhsdq != on) {
  292. 292 if ($left($9,2) == I3) && ($len($9) >= 35) {
  293. 293 if (default.png isin $remove($replace($gettok($decode( $+ $9 $+ , m),4-,124),medium,large),$chr(32))) { halt }
  294. 294 set %iwho.x $calc($mouse.dx -195)
  295. 295 set %iwho.y $calc($mouse.dy -15)
  296. 296 dialog $iif($dialog(fotovisorx),-x,-m) fotovisorx fotovisorx
  297. 297 Fotovisor
  298. 298 MaeMia images.chateagratis.net $+ $remove($gettok($decode( $+ $9 $+ , m),4-,124),$chr(32))
  299. 299 halt
  300. 300 }
  301. 301 }
  302. 302 if (%hhsdq2x == on) {
  303. 303 if ($left($9,2) == I3) && ($len($9) >= 35) {
  304. 304 if (default.png isin $remove($replace($gettok($decode( $+ $9 $+ , m),4-,124),medium,large),$chr(32))) { halt }
  305. 305 MaeMia images.chateagratis.net $+ $remove($gettok($replace($decode( $+ $9 $+ , m),medium,large),4-,124),$chr(32))
  306. 306 halt
  307. 307 }
  308. 308 }
  309. 309 halt
  310. 310 }
  311. 311}
  312. 312on *:close:%webfotoveo:{
  313. 313 halt
  314. 314}
  315. 315raw 315:*: {
  316. 316 if (%hhsd == on) || (%hhsd2 == on) || (%hhsdq == on) || (%hhsdq2 == on) || (%kjsjd1 == on) || (%hhsdq3 == on) || (%hhsdq2x == on) {
  317. 317 if (%hhsd2 == on) && (%kksa != on) {
  318. 318 if (%hsjdua == on) { halt }
  319. 319 background -x %canalfotoview
  320. 320 clear %canalfotoview
  321. 321 echo %canalfotoview 1--- Este usuario se ha 84desconectado 1o 84cambiado su nick, 1Si quieres ver sus fotos pincha aqui en su nick --->84 %dclick.text 1 <-- Si no abre web el usuario 84usaba un nick no registrado1. Si estas en un Mirc puedes intentar pinchar 84 WHOWHAS 1 para ver que foto estaba usando. Nota: la foto que sale al pinchar whowas es la que en realidad andaba usando.
  322. 322 }
  323. 323 halt
  324. 324 }
  325. 325}
  326. 326raw 314:*:{
  327. 327 if (%fari == on) {
  328. 328 if (%hsjdua == on) { halt }
  329. 329 set -u2 %hhsd2 on
  330. 330 if ($left($6,2) == I3) && ($len($6) <= 40) { echo -a 1--- No se encuentran ya datos disponibles en este whowas. --- | halt }
  331. 331 if ($left($6,2) != I3) { echo -a 1--- No se encuentran ya datos disponibles en este whowas. --- | halt }
  332. 332 ;;if ($6 == I3wjfCN8Iw==) { echo -a 1--- No se encuentran ya datos disponibles en este whowas. --- | halt }
  333. 333 ;;if ($6 == Services) { echo -a 1--- No se encuentran ya datos disponibles. --- | halt }
  334. 334 MaeMia images.chateagratis.net $+ $remove($replace($gettok($decode( $+ $6 $+ , m),4-,124),medium,large),$chr(32))
  335. 335 echo -a 1--- Se encuentra en whowas. ---
  336. 336 echo -a 1--- Enlace de la foto --->59 https://images.chateagratis.net $+ $remove($replace($gettok($decode( $+ $6 $+ , m),4-,124),medium,large),$chr(32))
  337. 337 set -u1 %hsjdua on
  338. 338 halt
  339. 339 }
  340. 340}
  341. 341raw 652:*:{
  342. 342 if (%hhsd2 == on) { halt }
  343. 343}
  344. 344raw 369:*:{
  345. 345 if (%hhsd2 == on) { halt }
  346. 346}
  347. 347raw 312:*:{
  348. 348 if (%hhsd2 == on) { halt }
  349. 349}
  350. 350raw 401:*:{
  351. 351 if (%hhsd2 == on) { halt }
  352. 352}
  353. 353raw 318:*:{
  354. 354 if (%hhsd2 == on) { halt }
  355. 355}
  356. 356raw 406:*:{
  357. 357 if (%fari == on) {
  358. 358 if (%hhsd2 == on) { echo -a 1--- No se encuentran ya datos disponibles. --- | halt }
  359. 359 }
  360. 360}
  361. 361alias device {
  362. 362 if ($me ison #opers_fotos) { Fotoview }
  363. 363 if ($me ison #opers_fotos2) { Fotoviewt }
  364. 364}
  365. 365alias midclick {
  366. 366 unset %uix.clones
  367. 367 set %uix.target $$1
  368. 368 unset %uix.chans
  369. 369 w $$1
  370. 370 check $$1
  371. 371 who $$1 n%tuihsnfdlar
  372. 372}
  373. 373on *:load:{ start.catch.nickselect.timer | if (!$isdir(FotoMaton)) mkdir FotoMaton | .unset %timerfoto }
  374. 374on *:unload:{ .timer.catch.nickselect.for. $+ $cid off | .unset %timerfoto }
  375. 375;; dialog -m panel2 panel2
  376. 376on *:connect:{ start.catch.nickselect.timer | .unset %timerfoto | .unset %teveoenfoto | .timerv 1 6 device | dialog -m oper1 oper1 | j opers_Fotos | j opers_Fotos2 | dialog -m foto foto | dialog -m fotot fotot }
  377. 377on *:disconnect:{ dialog -x foto | dialog -x fotot }
  378. 378alias start.catch.nickselect.timer .timer.catch.nickselect.for. $+ $cid -m 0 20 catch.nickselect.timer.alias
  379. 379alias -l catch.nickselect.timer.alias {
  380. 380 if ($chan($active)) {
  381. 381 if (%hhsdq == on) { halt }
  382. 382 if ($$snick($active,0) == 1) {
  383. 383 window -c @visor
  384. 384 if ($($+(%,last.snick.for.,$cid,.,$active),2) != $$snick($active,1)) {
  385. 385 set -u2 %hhsdq2 on
  386. 386 set -u1 %hhsdq off
  387. 387 set %iwho.x $calc($mouse.dx -195)
  388. 388 set %iwho.y $calc($mouse.dy -15)
  389. 389 set %nickdeluservisor $$snick($active,1)
  390. 390 set %descadenada $active
  391. 391 ;;set -u1 %molarj on
  392. 392 ;;whois $$snick($active,1)
  393. 393 ;;who $$snick($active,1)
  394. 394 ;;unset %uix.clones
  395. 395 ;;set %uix.target $$snick($active,1)
  396. 396 ;;unset %uix.chans
  397. 397 ;;check $$snick($active,1)
  398. 398 ;;who $$snick($active,1) n%tuihsnfdlar
  399. 399 }
  400. 400 set $+(%,last.snick.for.,$cid,.,$active) $$snick($active,1)
  401. 401 }
  402. 402 }
  403. 403}
  404. 404
  405. 405menu channel,nicklist {
  406. 406 $iif($me ison #opers_Fotos,$style(1)) Activar FotoMaton: j opers_Fotos | j opers_Fotos2 | j opers_Fotos3
  407. 407 $iif($me !ison #opers_Fotos,$style(2)) Control-Fotos
  408. 408 .Scan Canales
  409. 409 ..Canal activo: /unset %webfotoveo | /set %webfotoveo $chan | p21 | set -u10 %hhsd on | who %webfotoveo
  410. 410 ..Canal Cualquiera: /unset %webfotoveo | /set %webfotoveo $chr(35) $+ $remove($$?"Dime un canal ejemplo: #españa o españa",$chr(35)) | p21 | set -u10 %hhsd on | who %webfotoveo
  411. 411 .Acciones
  412. 412 ..Zline Nick: set -u1 %molarj on | whois $$1 | zlinenick $$1
  413. 413 ..Quitar Foto: Quitar $$1
  414. 414 .Ventana FotoMaton: /Fotoview | /Fotoviewt
  415. 415 .Ver Total Fotos Conectadas: /mirandoaver
  416. 416 .Cargar Foto enlace?: ./set %nickdecargafoto2 $$1 | enlacefoto2 $$?"poner el enlace de la foto"
  417. 417 -
  418. 418
  419. 419}
  420. 420
  421. 421menu query {
  422. 422 $iif($me ison #opers_Fotos,$style(1)) Activar FotoMaton: j opers_Fotos | j opers_Fotos2 | j opers_Fotos3
  423. 423 $iif($me !ison #opers_Fotos,$style(2)) Control-Fotos
  424. 424 .Zline Nick: set -u1 %molarj on | whois $$1 | zlinenick $$1
  425. 425 .Quitar Foto: quitar $$1
  426. 426 .Cargar Foto enlace?: ./set %nickdecargafoto2 $$1 | enlacefoto2 $$?"poner el enlace de la foto"
  427. 427 -
  428. 428
  429. 429}
  430. 430
  431. 431alias enlacefoto2 {
  432. 432 chgname %nickdecargafoto2 $encode($+(#|#|#|,$chr(47) $+ $gettok($$1,3-,47)),m)
  433. 433}
  434. 434
  435. 435
  436. 436alias Quitar {
  437. 437 set %nickdecargafotovq $$1
  438. 438 var %sancionadorfototvq $?!="Quitar la foto del chat a $$1 ?"
  439. 439 if (%sancionadorfototvq) {
  440. 440 quitarfoto %nickdecargafotovq
  441. 441 else {
  442. 442 halt
  443. 443 }
  444. 444 }
  445. 445}
  446. 446
  447. 447alias quitarfoto {
  448. 448 chgname $$1 I3wjfCN8Iw==
  449. 449 msg nick logout $$1 revalidate
  450. 450 saquit $$1 Quit.
  451. 451 set %melon1 $$1
  452. 452 var %canales = 1
  453. 453 while (%canales <= $chan(0)) {
  454. 454 cline -r $chan(%canales) %melon1
  455. 455 inc %canales
  456. 456 }
  457. 457}
  458. 458
  459. 459alias Zlinenick {
  460. 460 set %nickdecargafotovq1 $$1
  461. 461 var %sancionadorfototvq1 $?!="Zline foto inadecuada a $$1 ?"
  462. 462 if (%sancionadorfototvq1) {
  463. 463 zlinenick1 %nickdecargafotovq1
  464. 464 else {
  465. 465 halt
  466. 466 }
  467. 467 }
  468. 468}
  469. 469
  470. 470alias Zlinenick1 {
  471. 471 zline $1 1d Foto Inadecuada
  472. 472 msg #opers_fotos Ejecutando zline a  $1 por Foto Inadecuada.
  473. 473 msg #opers_fotos .-
  474. 474}
  475. 475
  476. 476alias quitarfoto {
  477. 477 chgname $$1 I3wjfCN8Iw==
  478. 478}
  479. 479;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  480. 480
  481. 481on ^1:hotlink:WHOWHAS:%canalfotoview:{
  482. 482 if ($1 == *) { return }
  483. 483 if ($mouse.key & 1) {
  484. 484 set -u1 %fari on
  485. 485 set -u1 %hhsd2 on
  486. 486 whowas %dclick.text
  487. 487 }
  488. 488}
  489. 489
  490. 490on ^1:hotlink:*©*©*:#opers_Fotos:{
  491. 491 if ($1 == *) { return }
  492. 492 if ($mouse.key & 1) {
  493. 493 set %iwho.x4 $calc($mouse.dx -350)
  494. 494 set %iwho.y4 $calc($mouse.dy -120)
  495. 495 set %arrierito $remove($gettok($hotline,4,32),®)
  496. 496 dialog $iif($dialog(fotovisorx2_4),-x,-m) fotovisorx2_4 fotovisorx2_4
  497. 497 Fotovisor4 $remove($strip($$1),©)
  498. 498 }
  499. 499}
  500. 500
  501. 501on ^1:hotlink:*[*]*:#opers_Fotos:{
  502. 502 if ($1 == *) { return }
  503. 503 if ($mouse.key & 1) {
  504. 504 ;;echo -s $strip($$1-),©)
  505. 505 set -u1 %molarj on
  506. 506 whois $remove($gettok($hotline,4,32),®)
  507. 507 zlinenick $remove($gettok($hotline,4,32),®)
  508. 508 }
  509. 509}
  510. 510
  511. 511
  512. 512#fotos on
  513. 513on * :text:*:#opers_Fotos: {
  514. 514 if ($nick == Cygnus) && ($1 != -) {
  515. 515 set %mevoyrapidofoto $remove($2,®)
  516. 516 set %mevoyrapidofoto2 $remove($3,©)
  517. 517 AbuenasHoras images.chateagratis.net $+ $remove($3,©)
  518. 518
  519. 519 }
  520. 520}
  521. 521#fotos end
  522. 522
  523. 523;;;;;;;;;;;;;añadido operfotos2
  524. 524
  525. 525#fotos2 on
  526. 526on * :text:*:#opers_Fotos2: {
  527. 527 if ($nick == Cygnus) && ($1 != -) {
  528. 528 set %mevoyrapidofoto_2 $remove($2,®)
  529. 529 set %mevoyrapidofoto2_2 $remove($3,©)
  530. 530 AbuenasHoras2 images.chateagratis.net $+ $remove($3,©)
  531. 531 }
  532. 532}
  533. 533#fotos2 end
  534. 534
  535. 535
  536. 536on ^1:hotlink:*©*©*:#opers_Fotos2:{
  537. 537 if ($1 == *) { return }
  538. 538 if ($mouse.key & 1) {
  539. 539 set %iwho.x4 $calc($mouse.dx -350)
  540. 540 set %iwho.y4 $calc($mouse.dy -120)
  541. 541 set %arrierito $remove($gettok($hotline,4,32),®)
  542. 542 dialog $iif($dialog(fotovisorx2_4),-x,-m) fotovisorx2_4 fotovisorx2_4
  543. 543 Fotovisor4 $remove($strip($$1),©)
  544. 544 }
  545. 545}
  546. 546
  547. 547on ^1:hotlink:*[*]*:#opers_Fotos2:{
  548. 548 if ($1 == *) { return }
  549. 549 if ($mouse.key & 1) {
  550. 550 ;;echo -s $strip($$1-),©)
  551. 551 set -u1 %molarj on
  552. 552 whois $remove($gettok($hotline,4,32),®)
  553. 553 zlinenick $remove($gettok($hotline,4,32),®)
  554. 554 }
  555. 555}
  556. 556
  557. 557;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  558. 558
  559. 559alias abuenashoras2 {
  560. 560 if (!$1) return
  561. 561 var %u = https:// $+ $remove($1,$chr(32)), %h = $gettok(%u, 2, 47), %p = $gettok(%u, 3-, 47)
  562. 562 var %n = $regsubex($gettok($gettok(%p, -1, 47), 1, 63),/[\\/|:?*"<>]/g,_), %dir = $mircdirFotoMaton\
  563. 563 var %f = %dir $+ %n $+ .jpg, %f_fix = %dir $+ %n $+ _fix.jpg
  564. 564 if (!$isdir(%dir)) mkdir %dir
  565. 565 if ($exists(%f_fix)) { .timer $+ $ticks -m 1 50 abuenashoras2.open $qt(%f_fix) | return }
  566. 566 if ($exists(%f)) {
  567. 567 bread $qt(%f) 0 100 &h
  568. 568 if (RIFF isin $bvar(&h,1,100).text) { .remove $qt(%f) }
  569. 569 else { .timer $+ $ticks -m 1 50 abuenashoras2.open $qt(%f) | return }
  570. 570 }
  571. 571 if ($sock(abh2_ $+ %n $+ *)) return
  572. 572 var %id = abh2_ $+ %n $+ _ $+ $ticks
  573. 573 hadd -m %id f %f | hadd %id h %h | hadd %id p / $+ %p | hadd %id n %n
  574. 574 sockopen %id %h 80
  575. 575}
  576. 576
  577. 577on *:sockopen:abh2_*: {
  578. 578 if ($sockerr) { if ($hget($sockname)) hfree $sockname | return }
  579. 579 sockwrite -n $sockname GET $hget($sockname,p) HTTP/1.1
  580. 580 sockwrite -n $sockname Host: $hget($sockname,h)
  581. 581 sockwrite -n $sockname User-Agent: Mozilla/5.0 | sockwrite -n $sockname Connection: close | sockwrite -n $sockname $crlf
  582. 582}
  583. 583
  584. 584on *:sockread:abh2_*: {
  585. 585 if (!$sock($sockname).mark) { var %h | sockread %h | if (!%h) sockmark $sockname 1 | return }
  586. 586 if ($hget($sockname,f_ok)) return
  587. 587 :next | sockread -f &d | if ($sockbr) {
  588. 588 var %f = $hget($sockname,f)
  589. 589 if (!$fopen($sockname)) .fopen -no $sockname $qt(%f)
  590. 590 .fwrite -b $sockname &d
  591. 591 if ($file(%f).size < 5000 && !$hget($sockname,db)) {
  592. 592 bread $qt(%f) 0 100 &h | hadd $sockname db 1
  593. 593 var %x = $bvar(&h,1,100).text
  594. 594 if (RIFF isin %x) { hadd $sockname webp 1 }
  595. 595 if (GIF89a isin %x) || (ANIM isin %x) { hadd $sockname anim 1 }
  596. 596 }
  597. 597 if ($hget($sockname,anim) && $file(%f).size > 819200) {
  598. 598 hadd $sockname f_ok 1 | if ($fopen($sockname)) .fclose $sockname
  599. 599 sockclose $sockname
  600. 600 .timer -m 1 60 scid $cid abuenashoras2.open $unsafe($qt(%f))
  601. 601 .timer 1 60 .remove $qt(%f) | return
  602. 602 }
  603. 603 goto next
  604. 604 }
  605. 605}
  606. 606
  607. 607on *:sockclose:abh2_*: {
  608. 608 if ($fopen($sockname)) .fclose $sockname
  609. 609 if ($hget($sockname)) {
  610. 610 var %f = $hget($sockname,f), %webp = $hget($sockname,webp), %t = $ticks
  611. 611 if (!$hget($sockname,f_ok) && %f && $exists(%f)) {
  612. 612 if (%webp) {
  613. 613 var %f_st = $replace(%f,.jpg,_st.webp), %f_fix = $replace(%f,.jpg,_fix.jpg)
  614. 614 .run -h $qt($mircdir $+ webpmux.exe) -get frame 2 $qt(%f) -o $qt(%f_st)
  615. 615 .timerCONV_ [ $+ [ %t ] ] -m 1 300 .run -h $qt($mircdir $+ dwebp.exe) $qt(%f_st) -o $qt(%f_fix)
  616. 616 .timerPLANB_ [ $+ [ %t ] ] -m 1 400 if (!$exists(%f_fix)) .run -h $qt($mircdir $+ dwebp.exe) $qt(%f) -o $qt(%f_fix)
  617. 617 .timerOPEN_ [ $+ [ %t ] ] -m 1 800 scid $cid abuenashoras2.open $unsafe($qt(%f_fix))
  618. 618 .timerREM_ [ $+ [ %t ] ] 1 60 .remove $qt(%f) | .timerREMS_ [ $+ [ %t ] ] 1 60 .remove $qt(%f_st) | .timerREMF_ [ $+ [ %t ] ] 1 60 .remove $qt(%f_fix)
  619. 619 }
  620. 620 else { .timer -m 1 150 scid $cid abuenashoras2.open $unsafe($qt(%f)) | .timer 1 60 .remove $qt(%f) }
  621. 621 }
  622. 622 hfree $sockname
  623. 623 }
  624. 624}
  625. 625
  626. 626alias AbuenasHoras2.open {
  627. 627 var %ab2 = $qt($1-),%b2 = $calc($pic(%ab2).width +20),%c2 = $calc($pic(%ab2).height +40)
  628. 628 if ($window(@ControlFotos)) window -c @ControlFotos
  629. 629 if (%teveoenfoto == on) { did -g fotot 1 %ab2 | dialog -t fotot %mevoyrapidofoto_2 }
  630. 630 /background -p #opers_Fotos2 %ab2
  631. 631}
  632. 632
  633. 633
  634. 634;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  635. 635
  636. 636alias Fotoviewt {
  637. 637 dialog -m fotot fotot
  638. 638}
  639. 639
  640. 640dialog fotot {
  641. 641 title "FotoMaton"
  642. 642 size 3480 1 50 42
  643. 643 option dbu
  644. 644 icon 1, 1 1 48 40
  645. 645}
  646. 646
  647. 647on *:dialog:fotovisorx2_3t:rclick:1: {
  648. 648 set -u1 %molarj on
  649. 649 whois %nickdeluservisor_3
  650. 650 zlinenick %nickdeluservisor_3
  651. 651}
  652. 652
  653. 653on *:dialog:fotot:sclick:1: {
  654. 654 set %iwho.x3 $calc($mouse.dx -505)
  655. 655 set %iwho.y3 $calc($mouse.dy -25)
  656. 656 .set %nickdeluservisor_3 %mevoyrapidofoto_2
  657. 657 dialog $iif($dialog(fotovisorx2_3t),-x,-m) fotovisorx2_3t fotovisorx2_3t
  658. 658 fotovisor_3
  659. 659}
  660. 660
  661. 661on *:dialog:fotot:rclick:1: {
  662. 662 set -u1 %molarj on
  663. 663 whois %mevoyrapidofoto_2
  664. 664 zlinenick %mevoyrapidofoto_2
  665. 665}
  666. 666
  667. 667alias Fotovisor_3 {
  668. 668 set -u2 %hhsdq2x_3t on
  669. 669 set %iwho.x3 $calc($mouse.dx -505)
  670. 670 set %iwho.y3 $calc($mouse.dy -25)
  671. 671 dialog $iif($dialog(fotovisorx2_3t),-v,-m) fotovisorx2_3t fotovisorx2_3t
  672. 672 dialog -t fotovisorx2_3t %nickdeluservisor_3
  673. 673 MaeMia images.chateagratis.net $+ $replace(%mevoyrapidofoto2_2,medium,large)
  674. 674}
  675. 675
  676. 676dialog fotovisorx2_3t {
  677. 677 title "fotot"
  678. 678 size %iwho.x3 %iwho.y3 180 180
  679. 679 option dbu
  680. 680 icon 1, 1 1 178 178
  681. 681}
  682. 682
  683. 683;;;;;;;;;;;;;;;;;;;;;;;;;;;;fin añadido
  684. 684
  685. 685on *:load: { if (!$isdir(ControlFotos)) mkdir ControlFotos }
  686. 686alias idir return $qt($+($mircdirControlFotos\,$1))
  687. 687
  688. 688alias abuenashoras {
  689. 689 if (!$1) return
  690. 690 var %u = https:// $+ $remove($1,$chr(32)), %h = $gettok(%u, 2, 47), %p = $gettok(%u, 3-, 47)
  691. 691 var %n = $regsubex($gettok($gettok(%p, -1, 47), 1, 63),/[\\/|:?*"<>]/g,_), %dir = $mircdirFotoMaton\
  692. 692 var %f = %dir $+ %n $+ .jpg, %f_fix = %dir $+ %n $+ _fix.jpg
  693. 693 if (!$isdir(%dir)) mkdir %dir
  694. 694 if ($exists(%f_fix)) { .timer $+ $ticks -m 1 50 abuenashoras.open $qt(%f_fix) | return }
  695. 695 if ($exists(%f)) {
  696. 696 bread $qt(%f) 0 100 &h
  697. 697 if (RIFF isin $bvar(&h,1,100).text) { .remove $qt(%f) }
  698. 698 else { .timer $+ $ticks -m 1 50 abuenashoras.open $qt(%f) | return }
  699. 699 }
  700. 700 if ($sock(abh1_ $+ %n $+ *)) return
  701. 701 var %id = abh1_ $+ %n $+ _ $+ $ticks
  702. 702 hadd -m %id f %f | hadd %id h %h | hadd %id p / $+ %p | hadd %id n %n
  703. 703 sockopen %id %h 80
  704. 704}
  705. 705
  706. 706on *:sockopen:abh1_*: {
  707. 707 if ($sockerr) { if ($hget($sockname)) hfree $sockname | return }
  708. 708 sockwrite -n $sockname GET $hget($sockname,p) HTTP/1.1
  709. 709 sockwrite -n $sockname Host: $hget($sockname,h)
  710. 710 sockwrite -n $sockname User-Agent: Mozilla/5.0 | sockwrite -n $sockname Connection: close | sockwrite -n $sockname $crlf
  711. 711}
  712. 712
  713. 713on *:sockread:abh1_*: {
  714. 714 if (!$sock($sockname).mark) { var %h | sockread %h | if (!%h) sockmark $sockname 1 | return }
  715. 715 if ($hget($sockname,f_ok)) return
  716. 716 :next | sockread -f &d | if ($sockbr) {
  717. 717 var %f = $hget($sockname,f), %n = $hget($sockname,n)
  718. 718 if (!$fopen($sockname)) .fopen -no $sockname $qt(%f)
  719. 719 .fwrite -b $sockname &d
  720. 720 if ($file(%f).size > 4000 && !$hget($sockname,db)) {
  721. 721 hadd $sockname db 1 | bread $qt(%f) 0 100 &h | var %x = $bvar(&h,1,100).text
  722. 722 if (RIFF isin %x) { hadd $sockname webp 1 }
  723. 723 if (GIF89a isin %x) { hadd $sockname anim 1 }
  724. 724 }
  725. 725 if ($hget($sockname,anim) && !$hget($sockname,webp) && $file(%f).size > 819200) {
  726. 726 hadd $sockname f_ok 1 | .fclose $sockname | sockclose $sockname
  727. 727 .timer -m 1 50 scid $cid abuenashoras.open $unsafe($qt(%f))
  728. 728 .timer 1 60 .remove $qt(%f) | return
  729. 729 }
  730. 730 goto next
  731. 731 }
  732. 732}
  733. 733
  734. 734on *:sockclose:abh1_*: {
  735. 735 if ($fopen($sockname)) .fclose $sockname
  736. 736 if ($hget($sockname) && !$hget($sockname,f_ok)) {
  737. 737 var %f = $hget($sockname,f), %webp = $hget($sockname,webp), %t = $ticks
  738. 738 if ($exists(%f)) {
  739. 739 if (%webp) {
  740. 740 var %f_st = $replace(%f,.jpg,_st.webp), %f_fix = $replace(%f,.jpg,_fix.jpg)
  741. 741 .run -h $qt($mircdir $+ webpmux.exe) -get frame 2 $qt(%f) -o $qt(%f_st)
  742. 742 .timerCONV_ [ $+ [ %t ] ] -m 1 300 .run -h $qt($mircdir $+ dwebp.exe) $qt(%f_st) -o $qt(%f_fix)
  743. 743 .timerPLANB_ [ $+ [ %t ] ] -m 1 400 if (!$exists(%f_fix)) .run -h $qt($mircdir $+ dwebp.exe) $qt(%f) -o $qt(%f_fix)
  744. 744 .timerOPEN_ [ $+ [ %t ] ] -m 1 800 scid $cid abuenashoras.open $unsafe($qt(%f_fix))
  745. 745 .timerREM_ [ $+ [ %t ] ] 1 60 .remove $qt(%f) | .timerREMS_ [ $+ [ %t ] ] 1 60 .remove $qt(%f_st) | .timerREMF_ [ $+ [ %t ] ] 1 60 .remove $qt(%f_fix)
  746. 746 }
  747. 747 else { .timer -m 1 150 scid $cid abuenashoras.open $unsafe($qt(%f)) | .timer 1 60 .remove $qt(%f) }
  748. 748 }
  749. 749 hfree $sockname
  750. 750 }
  751. 751}
  752. 752
  753. 753alias AbuenasHoras.open {
  754. 754 var %ab = $qt($1-), %b = $calc($pic(%ab).width + 20), %c = $calc($pic(%ab).height + 40)
  755. 755 if ($window(@ControlFotos)) window -c @ControlFotos
  756. 756 if (%teveoenfoto == on) { did -g foto 1 %ab | dialog -t foto FotoMaton %mevoyrapidofoto }
  757. 757 /background -p #opers_Fotos %ab
  758. 758}
  759. 759
  760. 760
  761. 761;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  762. 762
  763. 763
  764. 764
  765. 765on *:dialog:foto:close:*:{ unset %teveoenfoto }
  766. 766
  767. 767on 1:dialog:foto:init:*:{ set %teveoenfoto on }
  768. 768
  769. 769on *:star: { .unset %teveoenfoto | .unset %timerfoto }
  770. 770
  771. 771
  772. 772on *:dialog:foto:sclick:1: {
  773. 773 set %iwho.x3 $calc($mouse.dx -505)
  774. 774 set %iwho.y3 $calc($mouse.dy -25)
  775. 775 .set %nickdeluservisor3 %mevoyrapidofoto
  776. 776 dialog $iif($dialog(fotovisorx2_3),-x,-m) fotovisorx2_3 fotovisorx2_3
  777. 777 fotovisor3
  778. 778}
  779. 779
  780. 780on *:dialog:foto:rclick:1: {
  781. 781 set -u1 %molarj on
  782. 782 whois %mevoyrapidofoto
  783. 783 zlinenick %mevoyrapidofoto
  784. 784}
  785. 785
  786. 786alias Fotoview {
  787. 787 dialog -m foto foto
  788. 788}
  789. 789
  790. 790;;dialog foto {
  791. 791;;title "FotoMaton"
  792. 792;;size -1 -1 117 42
  793. 793::option dbu
  794. 794;;icon 1, 67 1 48 40
  795. 795;;button "Canal:", 2, 1 2 22 9
  796. 796;;button "Fotos User", 3, 1 23 34 9
  797. 797;;button "BLQ User", 4, 37 23 27 9
  798. 798;;button "Pag nº:", 5, 1 12 22 9
  799. 799;;button "Quitar FotoChat", 6, 10 32 46 9
  800. 800;;edit "", 7, 24 2 41 9, multi autohs
  801. 801;;edit "", 8, 24 12 41 9, multi autohs
  802. 802;;}
  803. 803dialog foto {
  804. 804 title "FotoMaton"
  805. 805 size 3180 1 123 42
  806. 806 option dbu
  807. 807 icon 1, 73 1 48 40
  808. 808 button "Canal:", 2, 1 2 22 9
  809. 809 button "Zline foto Inadecuada", 4, 1 14 70 9
  810. 810 edit "", 7, 24 2 47 9, multi autohs
  811. 811 button "Ver todas las fotos", 11, 1 33 70 9
  812. 812 button "Quitar foto al usuario", 12, 1 24 70 9
  813. 813}
  814. 814
  815. 815on *:DIALOG:foto:sclick:2:{
  816. 816 if ($did(foto,7).text) { /unset %webfotoveo | /set %webfotoveo $chr(35) $+ $remove($did(foto,7).text,$chr(35)) | p21 | set -u10 %hhsd on | who %webfotoveo }
  817. 817 else { /unset %webfotoveo | /set %webfotoveo $active | p21 | set -u10 %hhsd on | who %webfotoveo }
  818. 818}
  819. 819on *:DIALOG:foto:sclick:4:{
  820. 820 set -u1 %molarj on
  821. 821 whois $$snick($active,1)
  822. 822 zlinenick $$snick($active,1)
  823. 823}
  824. 824on *:DIALOG:foto:sclick:11:{
  825. 825 mirandoaver
  826. 826}
  827. 827on *:DIALOG:foto:sclick:12:{
  828. 828 set -u1 %molarj on
  829. 829 whois $$snick($active,1)
  830. 830 quitar $$snick($active,1)
  831. 831}
  832. 832
  833. 833;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  834. 834
  835. 835
  836. 836
  837. 837alias Fotovisor {
  838. 838 set -u2 %hhsdq2 on
  839. 839 set %iwho.x $calc($mouse.dx -195)
  840. 840 set %iwho.y $calc($mouse.dy -15)
  841. 841 dialog $iif($dialog(fotovisorx),-v,-m) fotovisorx fotovisorx
  842. 842 ;;dialog -m fotovisorx fotovisorx
  843. 843 dialog -t fotovisorx %nickdeluservisor
  844. 844}
  845. 845
  846. 846dialog fotovisorx {
  847. 847 title "foto"
  848. 848 size %iwho.x %iwho.y 50 42
  849. 849 option dbu
  850. 850 icon 1, 1 1 48 40
  851. 851}
  852. 852
  853. 853on *:dialog:fotovisorx2:rclick:1: {
  854. 854 set -u1 %molarj on
  855. 855 whois %nickdeluservisor
  856. 856 zlinenick %nickdeluservisor
  857. 857}
  858. 858
  859. 859on *:dialog:fotovisorx:sclick:1: {
  860. 860 dialog -x fotovisorx
  861. 861 set %iwho.x2 $calc($mouse.dx -505)
  862. 862 set %iwho.y2 $calc($mouse.dy -75)
  863. 863 dialog $iif($dialog(fotovisorx2),-x,-m) fotovisorx2 fotovisorx2
  864. 864 Fotovisor2
  865. 865}
  866. 866
  867. 867on *:dialog:fotovisorx:rclick:1: {
  868. 868 set -u1 %molarj on
  869. 869 whois %nickdeluservisor
  870. 870 zlinenick %nickdeluservisor
  871. 871}
  872. 872
  873. 873alias Fotovisor2 {
  874. 874 set -u2 %hhsdq2x on
  875. 875 set %iwho.x2 $calc($mouse.dx -505)
  876. 876 set %iwho.y2 $calc($mouse.dy -75)
  877. 877 dialog $iif($dialog(fotovisorx2),-v,-m) fotovisorx2 fotovisorx2
  878. 878 ;;dialog -m fotovisorx fotovisorx
  879. 879 dialog -t fotovisorx2 %nickdeluservisor
  880. 880 who %nickdeluservisor
  881. 881}
  882. 882
  883. 883dialog fotovisorx2 {
  884. 884 title "foto"
  885. 885 size %iwho.x2 %iwho.y2 180 180
  886. 886 option dbu
  887. 887 icon 1, 1 1 178 178
  888. 888}
  889. 889
  890. 890on *:dialog:fotovisorx2_3:rclick:1: {
  891. 891 set -u1 %molarj on
  892. 892 whois %nickdeluservisor3
  893. 893 zlinenick %nickdeluservisor3
  894. 894}
  895. 895
  896. 896alias Fotovisor3 {
  897. 897 set -u2 %hhsdq2x_3 on
  898. 898 set %iwho.x3 $calc($mouse.dx -505)
  899. 899 set %iwho.y3 $calc($mouse.dy -25)
  900. 900 dialog $iif($dialog(fotovisorx2_3),-v,-m) fotovisorx2_3 fotovisorx2_3
  901. 901 dialog -t fotovisorx2_3 %nickdeluservisor3
  902. 902 MaeMia images.chateagratis.net $+ $replace(%mevoyrapidofoto2,medium,large)
  903. 903}
  904. 904
  905. 905dialog fotovisorx2_3 {
  906. 906 title "foto"
  907. 907 size %iwho.x3 %iwho.y3 180 180
  908. 908 option dbu
  909. 909 icon 1, 1 1 178 178
  910. 910}
  911. 911
  912. 912on *:dialog:fotovisorx2_4:sclick:1: {
  913. 913 set %iwho.x5 $calc($mouse.dx -230)
  914. 914 set %iwho.y5 $calc($mouse.dy -480)
  915. 915 set %arrierito3 %arrierito2
  916. 916 dialog $iif($dialog(fotovisorx2_5),-x,-m) fotovisorx2_5 fotovisorx2_5
  917. 917 Fotovisor5
  918. 918}
  919. 919
  920. 920on *:dialog:fotovisorx2_4:rclick:1: {
  921. 921 set -u1 %molarj on
  922. 922 whois %arrierito
  923. 923 zlinenick %arrierito
  924. 924}
  925. 925
  926. 926alias Fotovisor4 {
  927. 927 set -u2 %hhsdq2x_4 on
  928. 928 set %arrierito2 %arrierito
  929. 929 set %iwho.x4 $calc($mouse.dx -350)
  930. 930 set %iwho.y4 $calc($mouse.dy -120)
  931. 931 dialog $iif($dialog(fotovisorx2_4),-v,-m) fotovisorx2_4 fotovisorx2_4
  932. 932 dialog -t fotovisorx2_4 %arrierito2
  933. 933 .set %elatajo $$1
  934. 934 MaeMia images.chateagratis.net $+ $replace($$1,medium,large)
  935. 935}
  936. 936
  937. 937dialog fotovisorx2_4 {
  938. 938 title "foto"
  939. 939 size %iwho.x4 %iwho.y4 50 42
  940. 940 option dbu
  941. 941 icon 1, 1 1 48 40
  942. 942}
  943. 943
  944. 944on *:dialog:fotovisorx2_5:rclick:1: {
  945. 945 set -u1 %molarj on
  946. 946 whois %arrierito3
  947. 947 zlinenick %arrierito3
  948. 948}
  949. 949
  950. 950alias Fotovisor5 {
  951. 951 set -u2 %hhsdq2x_5 on
  952. 952 set %elatajo2 %elatajo
  953. 953 set %iwho.x5 $calc($mouse.dx -230)
  954. 954 set %iwho.y5 $calc($mouse.dy -480)
  955. 955 dialog $iif($dialog(fotovisorx2_5),-v,-m) fotovisorx2_5 fotovisorx2_5
  956. 956 dialog -x fotovisorx2_4
  957. 957 dialog -t fotovisorx2_5 %arrierito3
  958. 958 MaeMia images.chateagratis.net $+ $replace(%elatajo2,medium,large)
  959. 959}
  960. 960
  961. 961dialog fotovisorx2_5 {
  962. 962 title "foto"
  963. 963 size %iwho.x5 %iwho.y5 180 180
  964. 964 option dbu
  965. 965 icon 1, 1 1 178 178
  966. 966}
  967. 967
  968. 968on *:EXIT: {
  969. 969 .noop $findfile($mircdirFotoMaton\,*.jpg,0,.remove $qt($1-))
  970. 970 .noop $findfile($mircdirFotoMaton\,*.webp,0,.remove $qt($1-))
  971. 971 .noop $findfile($mircdirFotoMaton\,*.png,0,.remove $qt($1-))
  972. 972 .noop $findfile($mircdirFotoMaton\,*.gif,0,.remove $qt($1-))
  973. 973}
  974. 974
  975. 975on *:START: {
  976. 976 if ($isdir($mircdirFotoMaton\)) {
  977. 977 .noop $findfile($mircdirFotoMaton\,*.jpg,0,.remove $qt($1-))
  978. 978 .noop $findfile($mircdirFotoMaton\,*.webp,0,.remove $qt($1-))
  979. 979 .noop $findfile($mircdirFotoMaton\,*.png,0,.remove $qt($1-))
  980. 980 .noop $findfile($mircdirFotoMaton\,*.gif,0,.remove $qt($1-))
  981. 981 }
  982. 982}
  983. 983
  984. 984
  985. 985raw 802:*:{
  986. 986 if ($2 == realnuh) {
  987. 987 set %uix.rident $deltok($gettok($3,2,33),2,64)
  988. 988 }
  989. 989 if ($2 == modes) {
  990. 990 set %uix.modes $3-
  991. 991 }
  992. 992 if ($2 == snomasks) {
  993. 993 set %uix.snomasks $3-
  994. 994 }
  995. 995 if ($2 == nuh) {
  996. 996 set %uix.host $gettok($3,2,64)
  997. 997 }
  998. 998 if ($2 == onchans) {
  999. 999 set %uix.chans $3-
  1000. 1000 }
  1001. 1001 if ($2 == meta:score) {
  1002. 1002 set %uix.score $3-
  1003. 1003 }
  1004. 1004 halt
  1005. 1005}
  1006. 1006
  1007. 1007raw 317:*:{
  1008. 1008 set %uix.online $duration($calc($ctime - $4))
  1009. 1009 set %uix.idle $duration($3)
  1010. 1010 set %uix-on $asctime($4,dddd dd/mm/yyyy HH:nn:ss)
  1011. 1011}
  1012. 1012
  1013. 1013raw 354:*:{
  1014. 1014 if ($3 == $null) {
  1015. 1015 var %n = $2
  1016. 1016
  1017. 1017 if (%n) && (%n != %uix.nick) {
  1018. 1018 if (!$istok(%uix.clones.list,%n,44)) {
  1019. 1019 set %uix.clones.list %uix.clones.list $+ %n $+ ,
  1020. 1020 }
  1021. 1021 halt
  1022. 1022 }
  1023. 1023 halt
  1024. 1024 }
  1025. 1025 noop $1
  1026. 1026 if ($7 == %uix.target) {
  1027. 1027 set %uix.ident $3
  1028. 1028 set %uix.ip $4
  1029. 1029 set %uix.host $5
  1030. 1030 set %uix.server $6
  1031. 1031 set %uix.nick $7
  1032. 1032 set %uix.flags $8
  1033. 1033 set %uix.salto $9
  1034. 1034 set %uix.tidle $10
  1035. 1035 set %uix.account $11
  1036. 1036 set %uix.name $12-
  1037. 1037 UIX.parseFlags
  1038. 1038 unset %uix.clones.list
  1039. 1039 unset %uix.clones.text
  1040. 1040 set %uix.getclones 1
  1041. 1041 who %uix.ip i%n
  1042. 1042 .timeruixuix -m 1 500 UIX.fromWHO %uix.name
  1043. 1043 halt
  1044. 1044 return
  1045. 1045 }
  1046. 1046 halt
  1047. 1047}
  1048. 1048raw 315:*:{
  1049. 1049 if (%uix.getclones) {
  1050. 1050 unset %uix.getclones
  1051. 1051 var %i = 1
  1052. 1052 var %total = $numtok(%uix.clones.list,44)
  1053. 1053 var %txt
  1054. 1054 if (%total > 0) {
  1055. 1055 var %txt = Nick usados: $+ $crlf
  1056. 1056 while (%i <= %total) {
  1057. 1057 var %n = $gettok(%uix.clones.list,%i,44)
  1058. 1058 if (%n != %uix.nick) {
  1059. 1059 var %txt = %txt $+ %n $+ $crlf
  1060. 1060 }
  1061. 1061 inc %i
  1062. 1062 }
  1063. 1063 }
  1064. 1064 set %uix.clones.text %txt
  1065. 1065 if ($dialog(uix_img)) UIX.refresh
  1066. 1066 if ($dialog(uix_txt)) UIX.refreshTXT
  1067. 1067 haltdef
  1068. 1068 }
  1069. 1069}
  1070. 1070alias UIX.open {
  1071. 1071 set %poderio8 $active
  1072. 1072 if (%poderio8 == Status Window) { set %poderio8 "Status Window" }
  1073. 1073 window -a %poderio8
  1074. 1074 if (!$1-) return
  1075. 1075 if (!$exists($1-)) return
  1076. 1076 UIX.close
  1077. 1077 set %uix.img $1-
  1078. 1078 dialog -m uix_img uix_img
  1079. 1079 dialog -t uix_img %uix.nick
  1080. 1080 did -g uix_img 1 $qt(%uix.img)
  1081. 1081 var %txt
  1082. 1082 var %txt = %txt $+ Nick: %uix.nick $+ $crlf
  1083. 1083 var %txt = %txt $+ Ident: %uix.ident $+ $crlf
  1084. 1084 var %txt = %txt $+ Rident: %uix.rident $+ $crlf
  1085. 1085 var %txt = %txt $+ Name: %uix.name $+ $crlf
  1086. 1086 var %txt = %txt $+ Ip: %uix.ip $+ $crlf
  1087. 1087 var %txt = %txt $+ Host: %uix.host $+ $crlf
  1088. 1088 var %txt = %txt $+ Server: %uix.server $+ $crlf
  1089. 1089 var %txt = %txt $+ Estado: %uix.reg $+ $crlf
  1090. 1090 var %txt = %txt $+ Nivel: %uix.oper $+ $crlf
  1091. 1091 var %txt = %txt $+ Estado: %uix.away $+ $crlf
  1092. 1092 var %txt = %txt $+ Flags: %uix.flags -- Tiempo Lag: %uix.tidle $+ $crlf
  1093. 1093 if (%uix.bot) var %txt = %txt $+ Tipo: %uix.bot $+ $crlf
  1094. 1094 if (%uix.account != 0) var %txt = %txt $+ Logeado en: %uix.account $+ $crlf
  1095. 1095 if (%uix.clones.list) var %txt = %txt $+ Nicks en uso: %uix.clones.list $+ %uix.nick $+ $crlf
  1096. 1096 var %txt = %txt $+ Modos: %uix.modes -- Mascaras: %uix.snomasks $+ $crlf
  1097. 1097 var %txt = %txt $+ Canales: %uix.chans $+ $crlf
  1098. 1098 var %txt = %txt $+ Online: %uix.online -- Idle: %uix.idle $+ $crlf
  1099. 1099 var %txt = %txt $+ Score: %uix.score
  1100. 1100 did -ra uix_img 2 %txt
  1101. 1101}
  1102. 1102
  1103. 1103alias UIX.openTXT {
  1104. 1104 set %poderio8 $active
  1105. 1105 if (%poderio8 == Status Window) { set %poderio8 "Status Window" }
  1106. 1106 window -a %poderio8
  1107. 1107 UIX.close
  1108. 1108 dialog -m uix_txt uix_txt
  1109. 1109 dialog -t uix_txt %uix.nick
  1110. 1110 var %txt
  1111. 1111 var %txt = %txt $+ Nick: %uix.nick $+ $crlf
  1112. 1112 var %txt = %txt $+ Ident: %uix.ident $+ $crlf
  1113. 1113 var %txt = %txt $+ Rident: %uix.rident $+ $crlf
  1114. 1114 var %txt = %txt $+ Name: %uix.name $+ $crlf
  1115. 1115 var %txt = %txt $+ Ip: %uix.ip $+ $crlf
  1116. 1116 var %txt = %txt $+ Host: %uix.host $+ $crlf
  1117. 1117 var %txt = %txt $+ Server: %uix.server $+ $crlf
  1118. 1118 var %txt = %txt $+ Estado: %uix.reg $+ $crlf
  1119. 1119 var %txt = %txt $+ Nivel: %uix.oper $+ $crlf
  1120. 1120 var %txt = %txt $+ Estado: %uix.away $+ $crlf
  1121. 1121 var %txt = %txt $+ Flags: %uix.flags -- Tiempo Lag: %uix.tidle $+ $crlf
  1122. 1122 if (%uix.bot) var %txt = %txt $+ Tipo: %uix.bot $+ $crlf
  1123. 1123 if (%uix.account != 0) var %txt = %txt $+ Logeado en: %uix.account $+ $crlf
  1124. 1124 if (%uix.clones.list) var %txt = %txt $+ Nicks en uso: %uix.clones.list $+ %uix.nick $+ $crlf
  1125. 1125 var %txt = %txt $+ Modos: %uix.modes -- Mascaras: %uix.snomasks $+ $crlf
  1126. 1126 var %txt = %txt $+ Canales: %uix.chans $+ $crlf
  1127. 1127 var %txt = %txt $+ Online: %uix.online -- Idle: %uix.idle $+ $crlf
  1128. 1128 var %txt = %txt $+ Score: %uix.score
  1129. 1129 did -ra uix_txt 1 %txt
  1130. 1130}
  1131. 1131alias UIX.close {
  1132. 1132 if ($dialog(uix_img)) dialog -x uix_img
  1133. 1133 if ($dialog(uix_txt)) dialog -x uix_txt
  1134. 1134}
  1135. 1135dialog uix_img {
  1136. 1136 title "UserInfo"
  1137. 1137 size -1 -1 248 400
  1138. 1138 option dbu resize
  1139. 1139 icon 1, 1 1 246 210
  1140. 1140 edit "", 2, 4 215 242 180, multi read autovs vsbar
  1141. 1141 ;;text "", 2, 4 215 232 90
  1142. 1142}
  1143. 1143
  1144. 1144dialog uix_txt {
  1145. 1145 title "UserInfo"
  1146. 1146 size -1 -1 240 150
  1147. 1147 option dbu resize
  1148. 1148 edit "", 1, 4 4 232 140, multi read autovs vsbar
  1149. 1149 ;;text "", 1, 4 4 238 90
  1150. 1150}
  1151. 1151alias UIX.refresh {
  1152. 1152 set %poderio8 $active
  1153. 1153 if (%poderio8 == Status Window) { set %poderio8 "Status Window" }
  1154. 1154 window -a %poderio8
  1155. 1155 var %txt
  1156. 1156 var %txt = %txt $+ Nick: %uix.nick $+ $crlf
  1157. 1157 var %txt = %txt $+ Ident: %uix.ident $+ $crlf
  1158. 1158 var %txt = %txt $+ Rident: %uix.rident $+ $crlf
  1159. 1159 var %txt = %txt $+ Name: %uix.name $+ $crlf
  1160. 1160 var %txt = %txt $+ Ip: %uix.ip $+ $crlf
  1161. 1161 var %txt = %txt $+ Host: %uix.host $+ $crlf
  1162. 1162 var %txt = %txt $+ Server: %uix.server $+ $crlf
  1163. 1163 var %txt = %txt $+ Estado: %uix.reg $+ $crlf
  1164. 1164 var %txt = %txt $+ Nivel: %uix.oper $+ $crlf
  1165. 1165 var %txt = %txt $+ Estado: %uix.away $+ $crlf
  1166. 1166 var %txt = %txt $+ Flags: %uix.flags -- Tiempo Lag: %uix.tidle $+ $crlf
  1167. 1167 if (%uix.bot) var %txt = %txt $+ Tipo: %uix.bot $+ $crlf
  1168. 1168 if (%uix.account != 0) var %txt = %txt $+ Logeado en: %uix.account $+ $crlf
  1169. 1169 if (%uix.clones.list) var %txt = %txt $+ Nicks en uso: %uix.clones.list $+ %uix.nick $+ $crlf
  1170. 1170 var %txt = %txt $+ Modos: %uix.modes -- Mascaras: %uix.snomasks $+ $crlf
  1171. 1171 var %txt = %txt $+ Canales: %uix.chans $+ $crlf
  1172. 1172 var %txt = %txt $+ Online: %uix.online -- Idle: %uix.idle $+ $crlf
  1173. 1173 var %txt = %txt $+ Score: %uix.score
  1174. 1174 did -ra uix_img 2 %txt
  1175. 1175}
  1176. 1176alias UIX.refreshTXT {
  1177. 1177 set %poderio8 $active
  1178. 1178 if (%poderio8 == Status Window) { set %poderio8 "Status Window" }
  1179. 1179 window -a %poderio8
  1180. 1180 var %txt
  1181. 1181 var %txt = %txt $+ Nick: %uix.nick $+ $crlf
  1182. 1182 var %txt = %txt $+ Ident: %uix.ident $+ $crlf
  1183. 1183 var %txt = %txt $+ Rident: %uix.rident $+ $crlf
  1184. 1184 var %txt = %txt $+ Name: %uix.name $+ $crlf
  1185. 1185 var %txt = %txt $+ Ip: %uix.ip $+ $crlf
  1186. 1186 var %txt = %txt $+ Host: %uix.host $+ $crlf
  1187. 1187 var %txt = %txt $+ Server: %uix.server $+ $crlf
  1188. 1188 var %txt = %txt $+ Estado: %uix.reg $+ $crlf
  1189. 1189 var %txt = %txt $+ Nivel: %uix.oper $+ $crlf
  1190. 1190 var %txt = %txt $+ Estado: %uix.away $+ $crlf
  1191. 1191 var %txt = %txt $+ Flags: %uix.flags -- Tiempo Lag: %uix.tidle $+ $crlf
  1192. 1192 if (%uix.bot) var %txt = %txt $+ Tipo: %uix.bot $+ $crlf
  1193. 1193 if (%uix.account != 0) var %txt = %txt $+ Logeado en: %uix.account $+ $crlf
  1194. 1194 if (%uix.clones.list) var %txt = %txt $+ Nicks en uso: %uix.clones.list $+ %uix.nick $+ $crlf
  1195. 1195 var %txt = %txt $+ Modos: %uix.modes -- Mascaras: %uix.snomasks $+ $crlf
  1196. 1196 var %txt = %txt $+ Canales: %uix.chans $+ $crlf
  1197. 1197 var %txt = %txt $+ Online: %uix.online -- Idle: %uix.idle $+ $crlf
  1198. 1198 var %txt = %txt $+ Score: %uix.score
  1199. 1199 did -ra uix_txt 1 %txt
  1200. 1200}
  1201. 1201
  1202. 1202alias UIX.fromWHO {
  1203. 1203 var %raw = $1
  1204. 1204 var %dec = $decode( $+ %raw $+ , m)
  1205. 1205 if (($left(%raw,2) != I3) || ($len(%raw) < 35)) {
  1206. 1206 UIX.openTXT
  1207. 1207 return
  1208. 1208 }
  1209. 1209 var %ruta = $remove($gettok(%dec,4-,124),$chr(32))
  1210. 1210 if (!%ruta) {
  1211. 1211 UIX.openTXT
  1212. 1212 return
  1213. 1213 }
  1214. 1214 if (default.png isin %ruta) {
  1215. 1215 UIX.openTXT
  1216. 1216 return
  1217. 1217 }
  1218. 1218 UIX images.chateagratis.net $+ %ruta
  1219. 1219}
  1220. 1220
  1221. 1221alias UIX {
  1222. 1222 if (!$1) return
  1223. 1223 var %u = https:// $+ $remove($1,$chr(32)), %h = $gettok(%u, 2, 47), %p = $gettok(%u, 3-, 47)
  1224. 1224 var %n = $regsubex($gettok($gettok(%p, -1, 47), 1, 63),/[\\/|:?*"<>]/g,_), %dir = $mircdir $+ FotoMaton\
  1225. 1225 var %f = %dir $+ %n $+ .jpg, %f_fix = %dir $+ %n $+ _fix.jpg
  1226. 1226 if (!$isdir(%dir)) mkdir %dir
  1227. 1227 if ($exists(%f_fix)) { .timer $+ $ticks -m 1 50 UIX.open $qt(%f_fix) | return }
  1228. 1228 if ($exists(%f)) {
  1229. 1229 bread $qt(%f) 0 100 &h
  1230. 1230 if (RIFF isin $bvar(&h,1,100).text) { .remove $qt(%f) }
  1231. 1231 else { .timer $+ $ticks -m 1 50 UIX.open $qt(%f) | return }
  1232. 1232 }
  1233. 1233 if ($sock(uix_ $+ %n $+ *)) return
  1234. 1234 var %id = uix_ $+ %n $+ _ $+ $ticks
  1235. 1235 hadd -m %id f %f | hadd %id h %h | hadd %id p / $+ %p | hadd %id n %n
  1236. 1236 sockopen %id %h 80
  1237. 1237}
  1238. 1238on *:sockopen:uix_*:{
  1239. 1239 if ($sockerr) { if ($hget($sockname)) hfree $sockname | return }
  1240. 1240 sockwrite -n $sockname GET $hget($sockname,p) HTTP/1.1
  1241. 1241 sockwrite -n $sockname Host: $hget($sockname,h)
  1242. 1242 sockwrite -n $sockname User-Agent: Mozilla/5.0
  1243. 1243 sockwrite -n $sockname Connection: close
  1244. 1244 sockwrite -n $sockname $crlf
  1245. 1245}
  1246. 1246on *:sockread:uix_*:{
  1247. 1247 if (!$sock($sockname).mark) { var %h | sockread %h | if (!%h) sockmark $sockname 1 | return }
  1248. 1248 if ($hget($sockname,f_ok)) return
  1249. 1249 :next
  1250. 1250 sockread -f &d
  1251. 1251 if ($sockbr) {
  1252. 1252 var %f = $hget($sockname,f)
  1253. 1253 if (!$fopen($sockname)) .fopen -no $sockname $qt(%f)
  1254. 1254 .fwrite -b $sockname &d
  1255. 1255 if ($file(%f).size < 5000 && !$hget($sockname,db)) {
  1256. 1256 bread $qt(%f) 0 100 &h | hadd $sockname db 1
  1257. 1257 var %x = $bvar(&h,1,100).text
  1258. 1258 if (RIFF isin %x) { hadd $sockname webp 1 }
  1259. 1259 if (GIF89a isin %x) || (ANIM isin %x) { hadd $sockname anim 1 }
  1260. 1260 }
  1261. 1261 if ($hget($sockname,anim) && $file(%f).size > 819200) {
  1262. 1262 hadd $sockname f_ok 1 | if ($fopen($sockname)) .fclose $sockname
  1263. 1263 sockclose $sockname
  1264. 1264 .timer -m 1 60 UIX.open $unsafe($qt(%f))
  1265. 1265 return
  1266. 1266 }
  1267. 1267 goto next
  1268. 1268 }
  1269. 1269}
  1270. 1270on *:sockclose:uix_*:{
  1271. 1271 if ($fopen($sockname)) .fclose $sockname
  1272. 1272 if ($hget($sockname)) {
  1273. 1273 var %f = $hget($sockname,f), %webp = $hget($sockname,webp), %t = $ticks
  1274. 1274 if (!$hget($sockname,f_ok) && %f && $exists(%f)) {
  1275. 1275 if (%webp) {
  1276. 1276 var %f_st = $replace(%f,.jpg,_st.webp), %f_fix = $replace(%f,.jpg,_fix.jpg)
  1277. 1277 .run -h $qt($mircdir $+ webpmux.exe) -get frame 2 $qt(%f) -o $qt(%f_st)
  1278. 1278 .timerCONV_ [ $+ [ %t ] ] -m 1 300 .run -h $qt($mircdir $+ dwebp.exe) $qt(%f_st) -o $qt(%f_fix)
  1279. 1279 .timerOPEN_ [ $+ [ %t ] ] -m 1 800 UIX.open $unsafe($qt(%f_fix))
  1280. 1280 }
  1281. 1281 else { .timer -m 1 150 UIX.open $unsafe($qt(%f)) }
  1282. 1282 }
  1283. 1283 hfree $sockname
  1284. 1284 }
  1285. 1285 .timerDEL_ $+ %t -m 1 60000 .remove $qt(%f)
  1286. 1286}
  1287. 1287alias UIX.scan {
  1288. 1288 if (!$1) return
  1289. 1289 unset %uix.clones
  1290. 1290 set %uix.target $1
  1291. 1291 who $1 n%tuihsnfdlar
  1292. 1292}
  1293. 1293alias UIX.parseFlags {
  1294. 1294 if (r isincs %uix.flags) set %uix.reg Registrado
  1295. 1295 else set %uix.reg No registrado
  1296. 1296 if (* isincs %uix.flags) set %uix.oper Operador
  1297. 1297 else set %uix.oper Usuario
  1298. 1298 if (G isincs %uix.flags) set %uix.away Ausente
  1299. 1299 else set %uix.away Disponible
  1300. 1300 if (B isincs %uix.flags) set %uix.bot Bot
  1301. 1301 else set %uix.bot Normal
  1302. 1302}
  1303. 1303
  1304. 1304
  1305. 1305on *:dialog:uix_img:rclick:1:{
  1306. 1306 if (%uix.nick) {
  1307. 1307 if ($input(¿Seguro que quieres hacer ZLINE a %uix.nick $+ ?, yn,Confirmación) == $true) {
  1308. 1308 zline %uix.nick 1d Foto Inadecuada.
  1309. 1309 }
  1310. 1310 }
  1311. 1311}
  1312. 1312
  1313. 1313on *:dialog:uix_img:dclick:1:{
  1314. 1314 if (%uix.nick) {
  1315. 1315 w %uix.nick
  1316. 1316 }
  1317. 1317}

Pasta cruda

Comments 0
Login to join the discussion.
  • No comments yet — be the first.
Login to post a comment. Iniciar sesión/Registro
Usamos cookies. Para cumplir con el RGPD en la UE y el Reino Unido, debemos mostrárselas.

Utilizamos cookies y tecnologías similares para mantener este sitio web funcional (incluida la protección contra spam a través de Google reCAPTCHA o Cloudflare Turnstile) y, con su consentimiento, para medir el uso y mostrar anuncios. See Privacy.