Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //<?php
- require("settings.php");
- $time = strftime("%H:%M:%S");
- $arguments = $args;
- unset($args[0]);
- print_r("[$time] $chan : defname command used by $who[0] with arguments: " . implode(", ", $args) . "\n");
- $a = count($arguments);
- if (count($args) < 1) {
- $bot->notice($who[0], "Correct syntax is: !defname NAME where name is the runescape name you'd like registered. If the name has spaces, please use underscores to fill in the spaces. ");
- }
- else {
- if (!file_exists("/cyrus/token/defnames/$who[2]") {
- $fh = fopen("/cyrus/token/defnames/$who[2]", "x+");
- fclose($fh);
- }
- //I know file_put_contents would make the file if it's not there, smd
- file_put_contents("/cyrus/token/defnames/$who[2]", $args[0]);
- }
Add Comment
Please, Sign In to add comment