San Jose Sharks' Joe Pavelski (8), celebrates with teammates, Justin Braun (61) and Joe Thornton (19) during the first period of an NHL hockey game against the Calgary Flames, Monday, Jan. 20, 2014 in San Jose, Calif. Other players from left are Brad Stuart and Brent Burns. (AP Photo/George Nikitin)

SAN JOSE — Joe Pavelski certainly has scored more dazzling goals in his career, and the Sharks certainly have played cleaner games this season.

But Pavelski and his teammates fought through an otherwise uneven performance Monday, and some rougher-than-usual ice conditions, to earn a 3-2 victory over the Calgary Flames and extend their win streak to four games.

Pavelski — coming off his first career hat trick Saturday at Tampa Bay — scored twice against Calgary, including the eventual winner in the second period, to help move the Sharks six points ahead of the Los Angeles Kings for second place in the Pacific Division.

The Sharks allowed two goals in the first period and were outshot 11-6 in the third period but did just enough defensively to begin their four-game homestand on a positive note.

“The win is important. When we start the night, that’s what our goal is,” Sharks coach Todd McLellan said. “When you look back and evaluate the game, that’s where it gets a little disappointing. We weren’t very good, obviously. I didn’t think we skated well, we weren’t moving our feet. … It was a night where we probably got away with one.”

Pavelski redirected a Justin Braun shot from the point in the first period for his first goal, then tipped in a shot from Joe Thornton in the second period for his 18th goal in the last 20 games.

Pavelski has 27 goals this season, tied for second in the NHL with Anaheim’s Corey Perry, and is eight goals back of Washington’s Alex Ovechkin.

“There are nights when you don’t feel your best, and you (still) find a way to get one or two,” Pavelski said. “But this feels like how you should play the game all the time.”

After the game, McLellan and several Sharks players commented on the soft ice conditions, which clearly caused stickhandling, passing and shooting problems for both teams. On Pavelski’s second goal, Thornton said with the ice conditions, he was just trying to get the puck in the general direction of the net.

“He just made a great play with hand-eye coordination,” Thornton said of Pavelski’s goal. “He’s just playing great right now.”

One of the biggest positives the Sharks could take away from Monday was their discipline, as they had a penalty-free game for the ninth time in franchise history.

The Flames took just one penalty, an interference call on Matt Stajan, but it led to Pavelski’s game-winner.

It was a far cry from the 101 minutes in penalties Calgary took in its game against Vancouver on Saturday that featured a line brawl after the first two seconds of the first period.

“Both teams stayed out of the box and were disciplined tonight,” Thornton said. “I think after their last game, they wanted to stay out of the box for a little bit.”

The Sharks are taking a wait-and-see approach to the ownership situation surrounding the San Francisco Bulls, their East Coast Hockey League affiliate that could fold or relocate to Fresno or Oakland as early as next week, according to the San Francisco Chronicle. Any move hinges on league approval, and there is an ECHL meeting Tuesday in Philadelphia.

The Sharks have only a handful of players on the Bulls who are on two-way contracts. A Sharks spokesman said if the Bulls fold, those players would be reassigned to another minor league team. The Sharks also could seek an affiliation with another ECHL team in California.

Marty Havlat and Mike Brown were scratches for the Sharks. Former San Jose forward TJ Galiardi, with just two assists in his last nine games, was a healthy scratch for the Flames. The Sharks traded Galiardi to Calgary last summer for a fourth-round pick in the 2015 draft.

A moment of silence was held before the game for scout Jack Gardiner, who died Jan. 12 after a long battle with cancer. Gardiner, a professional scout for 34 years, joined the Sharks in 2004.

Curtis Pashelka is the San Jose Sharks reporter for the Bay Area News Group. Prior to covering the Sharks, Curtis served as the high school sports editor for the East Bay. He also worked as a general assignment reporter covering motorsports, golf and college basketball, and as a backup writer on the A's, Giants and Warriors. He started at the organization in 2000 and spent close to eight years covering high school sports.